move environment variable to settings file

This commit is contained in:
Andreas Zweili 2020-03-10 21:59:04 +01:00
parent 2700e366f2
commit 29cdeef316
2 changed files with 1 additions and 2 deletions

2
run.sh
View File

@ -1,6 +1,4 @@
export DJANGO_SETTINGS_MODULE=sensors.settings.production
export DJANGO_DEBUG=False
export DJANGO_SECRET_KEY=foo
./manage.py migrate
./collector.sh &
gunicorn sensors.wsgi:application --bind 0.0.0.0:8000 --workers 4

View File

@ -7,6 +7,7 @@ ALLOWED_HOSTS = [
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'development_key'
DEBUG = False
DATABASES = {
'default': {