Closed
Bug 899767
Opened 11 years ago
Closed 10 years ago
easy way to serve static files locally in DEBUG=False mode
Categories
(support.mozilla.org :: Code Quality, task)
support.mozilla.org
Code Quality
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: willkg, Unassigned)
Details
(Whiteboard: u=dev c=general p= s=2013.backlog)
Django does different things when DEBUG=True and when DEBUG=False. Amongst other things, the tests run with DEBUG=False, but we typically develop when DEBUG=True. It comes up periodically when we need to simulate a server environment and have DEBUG=False, but it's important that static files are served with everything else which usually means with "./manage.py runserver". I'd like a mode that we can enable/disable that sets up whatever needs to be set up staticfiles-wise so that doing "./manage.py runserver" with DEBUG=False lets us simulate a server environment. Maybe do it like we do read_only_mode()?
Reporter | ||
Comment 1•11 years ago
|
||
Perhaps serve_it_like_a_boss()?
Reporter | ||
Comment 2•11 years ago
|
||
Tossing this in the backlog. It sure would be super nice.
Whiteboard: u=dev c=general p= s=2013.backlog
Reporter | ||
Comment 3•10 years ago
|
||
I heard some clamoring about a thing library called "whitenoise". That might help. Regardless, I opened this bug, but it hasn't gotten any love and it's a minor issue, so I'm closing it out now.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•