Skip to content
Snippets Groups Projects
Commit 46952136 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Upgrade settings to Django 3.2

parent be7370a1
No related branches found
No related tags found
No related merge requests found
CSRF_USE_SESSIONS = True
CSRF_TRUSTED_ORIGINS = ['localhost:8040', 'localhost:8080']
...@@ -83,6 +83,7 @@ TEMPLATES = [ ...@@ -83,6 +83,7 @@ TEMPLATES = [
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.template.context_processors.request',
'django.template.context_processors.debug', 'django.template.context_processors.debug',
'django.template.context_processors.i18n', 'django.template.context_processors.i18n',
'django.template.context_processors.media', 'django.template.context_processors.media',
...@@ -132,6 +133,8 @@ INSTALLED_APPS = ( ...@@ -132,6 +133,8 @@ INSTALLED_APPS = (
'corsheaders', 'corsheaders',
) )
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Set the desired sizes for your thumbnails (px) # Set the desired sizes for your thumbnails (px)
# Will apply to all uploaded images # Will apply to all uploaded images
THUMBNAIL_SIZES = ['640x480', '200x200', '150x150'] THUMBNAIL_SIZES = ['640x480', '200x200', '150x150']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment