Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20284 closed Cleanup/optimization (fixed)

Add DEBUG=True in how-to for managing static files

Reported by: wim@… 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:

  1. In your settings file, make sure that DEBUG = True. Otherwise runserver will not serve any static files.

Change History (6)

comment:1 by Claude Paroz, 11 years ago

Triage Stage: UnreviewedAccepted

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

comment:2 by Daniele Procida, 11 years ago

Owner: changed from nobody to Daniele Procida
Status: newassigned

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 Nicolas Noé, 11 years ago

Owner: changed from Daniele Procida to Nicolas Noé

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 Nicolas Noé, 11 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 Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In 2c84f4434cd0f6e74471d5737b049c648cff538f:

Fixed #20284 - Added a note about DEBUG in static file docs.

Thanks wim@ for the suggestion and Nicolas Noé for the patch.

comment:6 by Tim Graham <timograham@…>, 11 years ago

In 694f4ff9e28aac1ec0309fd379b4b53067c6c52f:

[1.5.x] Fixed #20284 - Added a note about DEBUG in static file docs.

Thanks wim@ for the suggestion and Nicolas Noé for the patch.

Backport of 2c84f4434c from master

Note: See TracTickets for help on using tickets.
Back to Top