From 469521366475d1567257ed9137b83af17f9d285b Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 17 Jan 2022 17:53:11 -0400 Subject: [PATCH] Upgrade settings to Django 3.2 --- steering/db.sqlite3 | 0 steering/diff | 2 ++ steering/settings.py | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 steering/db.sqlite3 create mode 100644 steering/diff diff --git a/steering/db.sqlite3 b/steering/db.sqlite3 new file mode 100644 index 00000000..e69de29b diff --git a/steering/diff b/steering/diff new file mode 100644 index 00000000..1726b777 --- /dev/null +++ b/steering/diff @@ -0,0 +1,2 @@ +CSRF_USE_SESSIONS = True +CSRF_TRUSTED_ORIGINS = ['localhost:8040', 'localhost:8080'] diff --git a/steering/settings.py b/steering/settings.py index 0f71d175..7240b7aa 100644 --- a/steering/settings.py +++ b/steering/settings.py @@ -83,6 +83,7 @@ TEMPLATES = [ 'OPTIONS': { 'context_processors': [ 'django.contrib.auth.context_processors.auth', + 'django.template.context_processors.request', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', @@ -132,6 +133,8 @@ INSTALLED_APPS = ( 'corsheaders', ) +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' + # Set the desired sizes for your thumbnails (px) # Will apply to all uploaded images THUMBNAIL_SIZES = ['640x480', '200x200', '150x150'] -- GitLab