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:
Andy Kittner 2012-05-18 22:34:59 +02:00
parent ebe5381439
commit 3f722d3b27

View File

@ -55,7 +55,9 @@ def main(argv = None):
if opts.reset_admin: if opts.reset_admin:
create_or_reset_admin_user() 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: if opts.nothread:
argv.append("--nothread") argv.append("--nothread")