Skip to content

Commit 5ccdfe1

Browse files
thibaudcolaslaymonage
authored andcommitted
Update all documentation URLs to point to stable Django
1 parent 0f8ecc5 commit 5ccdfe1

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

bakerydemo/base/templatetags/navigation_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from bakerydemo.base.models import FooterText
55

66
register = template.Library()
7-
# https://docs.djangoproject.com/en/3.2/howto/custom-template-tags/
7+
# https://docs.djangoproject.com/en/stable/howto/custom-template-tags/
88

99

1010
@register.simple_tag(takes_context=True)

bakerydemo/settings/base.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
Generated by 'django-admin startproject' using Django 1.10.5.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/3.2/topics/settings/
7+
https://docs.djangoproject.com/en/stable/topics/settings/
88
99
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/3.2/ref/settings/
10+
https://docs.djangoproject.com/en/stable/ref/settings/
1111
"""
1212

1313
import os
@@ -19,7 +19,7 @@
1919
BASE_DIR = os.path.dirname(PROJECT_DIR)
2020

2121
# Quick-start development settings - unsuitable for production
22-
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
22+
# See https://docs.djangoproject.com/en/stable/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
2525
SECRET_KEY = "c6u0-9c!7nilj_ysatsda0(f@e_2mws2f!6m0n^o*4#*q#kzp)"
@@ -118,7 +118,7 @@
118118

119119

120120
# Database
121-
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
121+
# https://docs.djangoproject.com/en/stable/ref/settings/#databases
122122

123123
if "DATABASE_URL" in os.environ:
124124
DATABASES = {"default": dj_database_url.config(conn_max_age=500)}
@@ -132,7 +132,7 @@
132132

133133

134134
# Password validation
135-
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
135+
# https://docs.djangoproject.com/en/stable/ref/settings/#auth-password-validators
136136

137137
AUTH_PASSWORD_VALIDATORS = [
138138
{
@@ -151,7 +151,7 @@
151151

152152

153153
# Internationalization
154-
# https://docs.djangoproject.com/en/3.2/topics/i18n/
154+
# https://docs.djangoproject.com/en/stable/topics/i18n/
155155

156156
LANGUAGE_CODE = "en-us"
157157

@@ -165,7 +165,7 @@
165165

166166

167167
# Static files (CSS, JavaScript, Images)
168-
# https://docs.djangoproject.com/en/3.2/howto/static-files/
168+
# https://docs.djangoproject.com/en/stable/howto/static-files/
169169

170170
STATICFILES_FINDERS = [
171171
"django.contrib.staticfiles.finders.FileSystemFinder",

bakerydemo/settings/production.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Accept all hostnames, since we don't know in advance which hostname will be used for any given Heroku instance.
2626
# IMPORTANT: Set this to a real hostname when using this in production!
27-
# See https://docs.djangoproject.com/en/3.2/ref/settings/#allowed-hosts
27+
# See https://docs.djangoproject.com/en/stable/ref/settings/#allowed-hosts
2828
ALLOWED_HOSTS = os.getenv("DJANGO_ALLOWED_HOSTS", "*").split(",")
2929

3030
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
@@ -188,7 +188,7 @@
188188
# These settings are usually used only on the production sites.
189189
# This is a configuration of the CDN/front-end cache that is used to cache the
190190
# production websites.
191-
# https://docs.wagtail.org/en/latest/reference/contrib/frontendcache.html
191+
# https://docs.wagtail.org/en/stable/reference/contrib/frontendcache.html
192192
# The backend can be configured to use an account-wide API key, or an API token with
193193
# restricted access.
194194
if (
@@ -273,7 +273,7 @@
273273
# because the apps are running on client domains (or our own for staging), that are
274274
# being used for other applications as well. We should therefore not impose any
275275
# restrictions on these unrelated applications.
276-
# https://docs.djangoproject.com/en/3.2/ref/settings/#secure-hsts-include-subdomains
276+
# https://docs.djangoproject.com/en/stable/ref/settings/#secure-hsts-include-subdomains
277277
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
278278

279279
# https://docs.djangoproject.com/en/stable/ref/settings/#secure-browser-xss-filter
@@ -290,5 +290,5 @@
290290
).strip()
291291

292292
# Allow the redirect importer to work in load-balanced / cloud environments.
293-
# https://docs.wagtail.io/en/v2.13/reference/settings.html#redirects
293+
# https://docs.wagtail.org/en/stable/reference/settings.html#redirects
294294
WAGTAIL_REDIRECTS_FILE_STORAGE = "cache"

bakerydemo/templates/base/form_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1 class="index-header__title">{{ page.title }}</h1>
2424
<div class="col-md-8 form-page">
2525
{% comment %}
2626
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:
27-
https://docs.djangoproject.com/en/3.2/topics/forms/#form-rendering-options
27+
https://docs.djangoproject.com/en/stable/topics/forms/#working-with-form-templates
2828
{% endcomment %}
2929
<form action="{% pageurl page %}" method="POST">
3030
{% csrf_token %}

bakerydemo/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/stable/howto/deployment/wsgi/
88
"""
99

1010
import os

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ docker compose logs -f
121121

122122
## Setup with Virtualenv
123123

124-
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/5.1/topics/install/#install-the-django-code) for Django itself.
124+
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/stable/topics/install/#install-the-django-code) for Django itself.
125125

126126
#### Dependencies
127127

@@ -217,7 +217,7 @@ In production on your own site, you'll need to change this to:
217217

218218
`EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'`
219219

220-
and configure [SMTP settings](https://docs.djangoproject.com/en/3.2/topics/email/#smtp-backend) appropriate for your email provider.
220+
and configure [SMTP settings](https://docs.djangoproject.com/en/stable/topics/email/#smtp-backend) appropriate for your email provider.
221221

222222
### Testing Content-Security-Policy compliance in Wagtail
223223

0 commit comments

Comments
 (0)