Adds django-browser-reload: runserver already restarts on Python changes, but the browser had to be refreshed by hand for every template or CSS edit. It also watches static/, so a Tailwind rebuild now refreshes the page on its own. Mounted only under DEBUG -- it injects a script into every HTML response and serves an open event stream, neither of which belongs in production; a test holds that line. Its endpoint is exempt from RequireMFAMiddleware, otherwise a not-yet-enrolled staff user has the stream redirected away and live reload dies on the MFA enrolment page, which is exactly a page we are restyling. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
441 B
HTML
16 lines
441 B
HTML
{% extends "_controlpanel_base.html" %}
|
|
|
|
{% block title %}
|
|
{% block head_title %}{% endblock head_title %} · RosterChief
|
|
{% endblock title %}
|
|
|
|
{% block main %}
|
|
<div class="flex justify-center">
|
|
<div class="card w-full max-w-xl bg-base-100 shadow">
|
|
<div class="card-body prose max-w-none">
|
|
{% block content %}{% endblock content %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock main %}
|