diff --git a/docs/examples/nginx_gunicorn/gunicorn_start b/docs/examples/nginx_gunicorn/gunicorn_start index f35ae7e..542f89b 100755 --- a/docs/examples/nginx_gunicorn/gunicorn_start +++ b/docs/examples/nginx_gunicorn/gunicorn_start @@ -9,7 +9,7 @@ PIDFILE=/srv/nsupdate/run/gunicorn.pid USER=www-data # the user to run as GROUP=www-data # the group to run as NUM_WORKERS=3 # how many worker processes should Gunicorn spawn -DJANGO_SETTINGS_MODULE=nsupdate.settings # which settings file should Django use +DJANGO_SETTINGS_MODULE=nsupdate.settings.dev # which settings file should Django use DJANGO_WSGI_MODULE=nsupdate.wsgi # WSGI module name echo "Starting $NAME" diff --git a/manage.py b/manage.py index fdd3ca4..115fa21 100755 --- a/manage.py +++ b/manage.py @@ -4,6 +4,6 @@ import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nsupdate.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nsupdate.settings.dev") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) diff --git a/nsupdate/wsgi.py b/nsupdate/wsgi.py index 4116076..b994b6f 100644 --- a/nsupdate/wsgi.py +++ b/nsupdate/wsgi.py @@ -18,8 +18,8 @@ import os # We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks # if running multiple sites in the same mod_wsgi process. To fix this, use # mod_wsgi daemon mode with each site in its own daemon process, or use -# os.environ["DJANGO_SETTINGS_MODULE"] = "nsupdate.settings" -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nsupdate.settings") +# os.environ["DJANGO_SETTINGS_MODULE"] = "nsupdate.settings.dev" +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nsupdate.settings.dev") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION