Update django

This commit is contained in:
Jannis Portmann 2024-11-19 23:02:00 +01:00
parent 86060740d8
commit 1909861a11
2 changed files with 4 additions and 4 deletions

View file

@ -203,7 +203,7 @@ def get_single_plz(plz):
def save_language(request):
referer_url = request.META.get('HTTP_REFERER')
referer_url = request.headers.get('referer')
response = redirect(referer_url)
if request.method == 'POST':

View file

@ -30,10 +30,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-q=ps#iypevr!3zfpwtfp3lw#4r3%oyj*(2=*iq^8f4_zbodi^("
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DJANGO_DEBUG') == 'true'
DEBUG = True
ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '').split(',')
CSRF_TRUSTED_ORIGINS = os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS', '').split(',')
ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', 'localhost').split(',')
CSRF_TRUSTED_ORIGINS = os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS', 'http://localhost:8080').split(',')
# Application definition