From 3f722d3b2702929c1559ee0b24b9a46dab6358bf Mon Sep 17 00:00:00 2001 From: Andy Kittner Date: Fri, 18 May 2012 22:34:59 +0200 Subject: [PATCH] Add --insecure to runserver args in order to always server static files See: https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/ --- openslides/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/main.py b/openslides/main.py index b5b9684eb..ebc3921d2 100644 --- a/openslides/main.py +++ b/openslides/main.py @@ -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")