You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the server, run collectstatic to copy all the static files into STATIC_ROOT.
Configure your web server to serve the files in STATIC_ROOT under the URL STATIC_URL.
How can i configure Daphne so that it can serve the static files?
The text was updated successfully, but these errors were encountered:
Django (including when it runs under Daphne) does not serve static files when DEBUG=False - you're meant to configure another server (like nginx) to serve them for you.
If you do want it to serve them, you'll have to use an app that lets Django serve static files in production, like whitenoise.
Hi,
I'm trying to use Daphne on production for all traffic HTTP and WebSocket, the problem is that the static files are not found,
I saw in a previous issue that i should follow these 3 steps from https://docs.djangoproject.com/en/2.0/howto/static-files/deployment/#serving-static-files-in-production
How can i configure Daphne so that it can serve the static files?
The text was updated successfully, but these errors were encountered: