Add --insecure to runserver args in order to always server static files
See: https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/
This commit is contained in:
parent
ebe5381439
commit
3f722d3b27
@ -55,7 +55,9 @@ def main(argv = None):
|
||||
if opts.reset_admin:
|
||||
create_or_reset_admin_user()
|
||||
|
||||
argv = ["", "runserver", "--noreload"]
|
||||
# NOTE: --insecure is needed so static files will be served if
|
||||
# DEBUG is set to False
|
||||
argv = ["", "runserver", "--noreload", "--insecure"]
|
||||
if opts.nothread:
|
||||
argv.append("--nothread")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user