Opened 23 months ago

Closed 22 months ago

Last modified 22 months ago

#20284 closed Cleanup/optimization (fixed)

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

Reported by: wim@… Owned by: niconoe
Component: Documentation Version: master
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


In Managing static files (CSS, images),

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 Changed 23 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Yes, we should add at least add a note about the behaviour depending on DEBUG, and also link to

comment:2 Changed 22 months ago by EvilDMP

  • Owner changed from nobody to EvilDMP
  • Status changed from new to 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 Changed 22 months ago by niconoe

  • Owner changed from EvilDMP to niconoe

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 Changed 22 months ago by niconoe

I just submitted a pull request for this ticket:

So I replaced the single line of text "Now, if you use ./ 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 Changed 22 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

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 Changed 22 months ago by Tim Graham <timograham@…>

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