easy way to serve static files locally in DEBUG=False mode

RESOLVED WONTFIX

Status

support.mozilla.org
Code Quality
RESOLVED WONTFIX
5 years ago
4 years ago

People

(Reporter: willkg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

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()?
Perhaps serve_it_like_a_boss()?
Tossing this in the backlog. It sure would be super nice.
Whiteboard: u=dev c=general p= s=2013.backlog
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
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.