Browse Source

Update all Django docs references to the latest (3.2) version

LB Johnston 3 years ago
parent
commit
e754783875

+ 1 - 1
bakerydemo/base/templatetags/navigation_tags.py

@@ -6,7 +6,7 @@ from bakerydemo.base.models import FooterText
 
 
 register = template.Library()
-# https://docs.djangoproject.com/en/1.9/howto/custom-template-tags/
+# https://docs.djangoproject.com/en/3.2/howto/custom-template-tags/
 
 
 @register.simple_tag(takes_context=True)

+ 7 - 7
bakerydemo/settings/base.py

@@ -4,10 +4,10 @@ Django settings for temp project.
 Generated by 'django-admin startproject' using Django 1.10.5.
 
 For more information on this file, see
-https://docs.djangoproject.com/en/1.10/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/1.10/ref/settings/
+https://docs.djangoproject.com/en/3.2/ref/settings/
 """
 
 import os
@@ -17,7 +17,7 @@ PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 BASE_DIR = os.path.dirname(PROJECT_DIR)
 
 # Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.10/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 = 'c6u0-9c!7nilj_ysatsda0(f@e_2mws2f!6m0n^o*4#*q#kzp)'
@@ -109,7 +109,7 @@ WSGI_APPLICATION = 'bakerydemo.wsgi.application'
 
 
 # Database
-# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
+# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
 
 DATABASES = {
     'default': {
@@ -120,7 +120,7 @@ DATABASES = {
 
 
 # Password validation
-# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
+# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
 
 AUTH_PASSWORD_VALIDATORS = [
     {
@@ -139,7 +139,7 @@ AUTH_PASSWORD_VALIDATORS = [
 
 
 # Internationalization
-# https://docs.djangoproject.com/en/1.10/topics/i18n/
+# https://docs.djangoproject.com/en/3.2/topics/i18n/
 
 LANGUAGE_CODE = 'en-us'
 
@@ -153,7 +153,7 @@ USE_TZ = True
 
 
 # Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.8/howto/static-files/
+# https://docs.djangoproject.com/en/3.2/howto/static-files/
 
 STATICFILES_FINDERS = [
     'django.contrib.staticfiles.finders.FileSystemFinder',

+ 1 - 1
bakerydemo/settings/production.py

@@ -25,7 +25,7 @@ SECURE_SSL_REDIRECT = os.getenv('DJANGO_SECURE_SSL_REDIRECT', 'off') == 'on'
 
 # Accept all hostnames, since we don't know in advance which hostname will be used for any given Heroku instance.
 # IMPORTANT: Set this to a real hostname when using this in production!
-# See https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts
+# See https://docs.djangoproject.com/en/3.2/ref/settings/#allowed-hosts
 ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(';')
 
 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

+ 1 - 1
bakerydemo/templates/base/form_page.html

@@ -22,7 +22,7 @@
         <div class="col-md-8 form-page">
         {% comment %}
         You could render your form using a Django rendering shortcut such as `{{ form.as_p }}` but that will tend towards unsemantic code, and make it difficult to style. You can read more on Django form at:
-        https://docs.djangoproject.com/en/1.10/topics/forms/#form-rendering-options
+        https://docs.djangoproject.com/en/3.2/topics/forms/#form-rendering-options
         {% endcomment %}
             <form action="{% pageurl page %}" method="POST" role="form">
                 {% csrf_token %}

+ 1 - 1
bakerydemo/wsgi.py

@@ -4,7 +4,7 @@ WSGI config for portal 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/1.10/howto/deployment/wsgi/
+https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
 """
 
 import os

+ 2 - 2
readme.md

@@ -112,7 +112,7 @@ docker-compose logs -f
 
 Setup with Virtualenv
 ---------------------
-You can run the Wagtail demo locally without setting up Vagrant or Docker and simply use Virtualenv, which is the [recommended installation approach](https://docs.djangoproject.com/en/1.10/topics/install/#install-the-django-code) for Django itself.
+You can run the Wagtail demo locally without setting up Vagrant or Docker and simply use Virtualenv, which is the [recommended installation approach](https://docs.djangoproject.com/en/3.2/topics/install/#install-the-django-code) for Django itself.
 
 #### Dependencies
 * Python 3.6, 3.7, 3.8 or 3.9
@@ -242,7 +242,7 @@ In production on your own site, you'll need to change this to:
 
 `EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'`
 
-and configure [SMTP settings](https://docs.djangoproject.com/en/1.10/topics/email/#smtp-backend) appropriate for your email provider.
+and configure [SMTP settings](https://docs.djangoproject.com/en/3.2/topics/email/#smtp-backend) appropriate for your email provider.
 
 ### Ownership of demo content