Downgrade to Django 3.2

Django 4 is only a few days old so library support for it isn't
up-to-par yet.
This commit is contained in:
Michael Herrmann
2021-12-10 14:47:31 +01:00
parent 7207d40d94
commit 5d9fb5f343
6 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# Generated by Django 4.0 on 2021-12-10 11:30
# Generated by Django 3.2.10 on 2021-12-10 13:43
import django.core.validators
from django.db import migrations, models
+2 -2
View File
@@ -1,6 +1,6 @@
# Output of `pip freeze` after `pip install -Ur base.txt`.
asgiref==3.4.1
Django==4.0
Django==3.2.10
pytz==2021.3
sqlparse==0.4.2
tzdata==2021.5
+1 -1
View File
@@ -1,3 +1,3 @@
# Update base-full.txt after any changes!
django==4.0
django==3.2.10
+1 -1
View File
@@ -4,7 +4,7 @@ ASGI config for wpr project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
+12 -10
View File
@@ -1,13 +1,13 @@
"""
Django settings for wpr project.
Generated by 'django-admin startproject' using Django 4.0.
Generated by 'django-admin startproject' using Django 3.2.10.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/topics/settings/
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
@@ -17,7 +17,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-n$m*a%3#nqpl5=(sp7v+!6r98mld#o4*(24!dawoma2i5(%lh='
@@ -72,7 +72,7 @@ WSGI_APPLICATION = 'wpr.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
@@ -83,7 +83,7 @@ DATABASES = {
# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
@@ -102,7 +102,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/4.0/topics/i18n/
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
@@ -110,15 +110,17 @@ TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = 'static/'
STATIC_URL = '/static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
+1 -1
View File
@@ -4,7 +4,7 @@ WSGI config for wpr project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os