runserver: not serving static for localhost
|Reported by:||shadow||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
runserver will only serve static files if STATIC_URL is relative. This makes sense if STATIC_URL includes a domain pointing to another server. However, it denies the possibility of including a localhost domain (as is needed by my current project).
I've currently worked around this by modifying: django/contrib/staticfiles/handlers.py
def _should_handle(self, path): return True
Sorry, I haven't had time to consider any side effects of this, but it's working for me at the moment.