Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve static files the proper way (WhiteNoise maybe) #5

Open
bittner opened this issue Mar 28, 2017 · 0 comments
Open

Serve static files the proper way (WhiteNoise maybe) #5

bittner opened this issue Mar 28, 2017 · 0 comments

Comments

@bittner
Copy link
Member

bittner commented Mar 28, 2017

Deploying Static Files

Django's Staticfiles allow collectstatic to push static files to various storage backends (including S3 Buckets). Also, the web proxy should serve the files directly without Django being involved. Alternatively, WhiteNoise in combination with a CDN may be a more modern approach.

Developing With Static Files

At the moment manage.py collectstatic must be used for local development too. This is closer to environment parity, but not handy for development. Outside of Docker WhiteNoise could be serving static files during development via the whitenoise.runserver_nostatic app.

See Also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant