#20284 closed Cleanup/optimization (fixed)
Add DEBUG=True in how-to for managing static files
Reported by: | Owned by: | Nicolas Noé | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | staticfiles |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
In Managing static files (CSS, images) https://docs.djangoproject.com/en/dev/howto/static-files/,
in the first part (Configuring static files), we forgot to mention that:
- In your settings file, make sure that DEBUG = True. Otherwise runserver will not serve any static files.
Change History (6)
comment:1 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I have tentatively reserved this ticket for first-time committers who take part in the Don't be afraid to commit workshop at the DjangoCon Europe 2013 sprints on 18th and 19th May.
If you want to tackle this ticket before then, please don't let the fact that it's assigned to me stop you. Feel free to re-assign it to yourself and do whatever you like to it.
comment:3 by , 12 years ago
Owner: | changed from | to
---|
I'm right here in the workshop and interested in that one, so I assigned it to myself. Feel free to change this if I'm wrong !
comment:4 by , 12 years ago
I just submitted a pull request for this ticket: https://github.com/django/django/pull/1120
So I replaced the single line of text "Now, if you use ./manage.py runserver, all static files should be served automatically at the STATIC_URL and be shown correctly." by a more complete note block (also re-stating that this was not a proper solution for production environments, and added links to relevant documentation).
Please note that I'm not a native English speaker.
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Yes, we should add at least add a note about the behaviour depending on DEBUG, and also link to https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#runserver