use different production settings file

This commit is contained in:
koksnuss 2020-05-15 00:06:52 +02:00
parent 593303e8c2
commit 7c4273f1a0
2 changed files with 3 additions and 7 deletions

View File

@ -23,9 +23,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'w-^#jkm1ub6=)(xiy%6od%+j6pwr51o0sk9o(-mb$8b77#h$53'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ['willipink.eu']
ALLOWED_HOSTS = ['localhost']
# Application definition
@ -119,7 +119,3 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True

View File

@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'coinmanager.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'coinmanager.settings_prod')
application = get_wsgi_application()