{# Page assets live INSIDE the content block (the dj-root): dj-navigate swaps only that region, so anything in extra_head/extra_scripts is missing when a visitor arrives by live navigation. Behaviour lives in static/js/site-pages.js. #}
DJE-032 Error Configuration
daphne not before staticfiles in INSTALLED_APPS
Error message
Static files not served correctly with daphneWhen using daphne as the ASGI server, it must be listed before django.contrib.staticfiles in INSTALLED_APPS. Otherwise, daphne's runserver command will not properly take over from Django's default runserver, and static files may not be served correctly during development.
config daphne static
Affected versions: >=0.2.0
Solution
Recommended
Place daphne first in INSTALLED_APPS
Move daphne to the top of your INSTALLED_APPS list so it can override Django's default management commands.
Before (problematic)
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.staticfiles",
"daphne", # Too late!
"djust",
"myapp",
]
After (fixed)
INSTALLED_APPS = [
"daphne", # Must be first!
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.staticfiles",
"djust",
"myapp",
]