Skip to content

Commit 162e55f

Browse files
committed
docs: Update references to Django docs
Use 5.2 (the most recent LTS) across the board. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 6e701a5 commit 162e55f

8 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎docs/deployment/configuration.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Patchwork provides three settings files:
2727
heavy customization. The :ref:`deployment guide <deployment-settings>`
2828
provides more information.
2929

30-
__ https://docs.djangoproject.com/en/2.2/topics/settings/
30+
__ https://docs.djangoproject.com/en/5.2/topics/settings/
3131

3232
Patchwork-specific Settings
3333
---------------------------
3434

3535
Patchwork utilizes a number of Patchwork-only settings in addition to the
3636
`Django`__ and `Django REST Framework`__ settings.
3737

38-
__ https://docs.djangoproject.com/en/2.2/ref/settings/
38+
__ https://docs.djangoproject.com/en/5.2/ref/settings/
3939
__ http://www.django-rest-framework.org/api-guide/settings/
4040

4141
``ADMINS_HIDE``
@@ -46,7 +46,7 @@ If True, the details in `ADMINS`__ will be hidden from the *About* page
4646

4747
.. versionadded:: 2.2
4848

49-
__ https://docs.djangoproject.com/en/2.2/ref/settings/#admins
49+
__ https://docs.djangoproject.com/en/5.2/ref/settings/#admins
5050

5151
``COMPAT_REDIR``
5252
~~~~~~~~~~~~~~~~

‎docs/deployment/installation.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ __ https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PEER
134134
`latin1` encoding. Refer to the `MySQL documentation`__ for more
135135
information.
136136

137-
__ https://docs.djangoproject.com/en/3.1/ref/unicode/
137+
__ https://docs.djangoproject.com/en/5.2/ref/unicode/
138138
__ https://dev.mysql.com/doc/refman/en/charset.html
139139

140140

@@ -163,7 +163,7 @@ We will install this under ``/opt``, though this is only a suggestion:
163163
web server's document root as this risks the possibility that people may be
164164
able to view your code over the Web. This is a security risk.
165165

166-
__ https://docs.djangoproject.com/en/2.2/intro/tutorial01/#creating-a-project
166+
__ https://docs.djangoproject.com/en/5.2/intro/tutorial01/#creating-a-project
167167

168168
Next we require Python. If not already installed, then you should do so now.
169169
Python 3 is installed by default but you should validate this now:
@@ -218,7 +218,7 @@ variables, you should export each setting using the appropriate name, such as
218218
``DJANGO_SECRET_KEY``, ``DATABASE_NAME`` or ``EMAIL_HOST``, instead of
219219
modifying the ``production.py`` file as we've done below.
220220

221-
__ https://docs.djangoproject.com/en/2.2/ref/settings/
221+
__ https://docs.djangoproject.com/en/5.2/ref/settings/
222222

223223
Databases
224224
^^^^^^^^^
@@ -441,7 +441,7 @@ address(es) from which you will be serving this domain. For example:
441441
442442
ALLOWED_HOSTS = ('.example.com', )
443443
444-
__ https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts
444+
__ https://docs.djangoproject.com/en/5.2/ref/settings/#allowed-hosts
445445

446446
Create systemd Unit File
447447
~~~~~~~~~~~~~~~~~~~~~~~~

‎docs/deployment/management.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ documentation`_. Information on any command can also be found by passing the
2525
2626
./manage.py cron --help
2727
28-
.. _Django documentation: https://docs.djangoproject.com/en/1.8/ref/django-admin/
28+
.. _Django documentation: https://docs.djangoproject.com/en/5.2/ref/django-admin/
2929

3030
Available Commands
3131
------------------

‎docs/deployment/upgrading.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ which must be applied before starting the instance. To do this, run the
6969
7070
For more information on migrations, refer to `the Django documentation`__.
7171

72-
__ https://docs.djangoproject.com/en/2.2/topics/migrations/
72+
__ https://docs.djangoproject.com/en/5.2/topics/migrations/

‎docs/development/installation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ respectively on Debian-based Debian-based distros like Ubuntu and
219219
supported`__. You will find some tests provided by Patchwork fail and some
220220
patches you develop may fail in production due to these differences.
221221

222-
__ https://docs.djangoproject.com/en/2.2/ref/databases/
222+
__ https://docs.djangoproject.com/en/5.2/ref/databases/
223223
__ https://www.sqlite.org/faq.html#q18
224224

225225
Example Installation

‎patchwork/settings/base.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#
1212
# Core settings
13-
# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
13+
# https://docs.djangoproject.com/en/5.2/ref/settings/#core-settings
1414
#
1515

1616
INSTALLED_APPS = [
@@ -83,7 +83,7 @@
8383

8484
#
8585
# Auth settings
86-
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth
86+
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth
8787
#
8888

8989
LOGIN_URL = 'auth_login'
@@ -93,15 +93,15 @@
9393

9494
#
9595
# Sites settings
96-
# https://docs.djangoproject.com/en/2.2/ref/settings/#sites
96+
# https://docs.djangoproject.com/en/5.2/ref/settings/#sites
9797
#
9898

9999
SITE_ID = 1
100100

101101

102102
#
103103
# Static files settings
104-
# https://docs.djangoproject.com/en/2.2/ref/settings/#static-files
104+
# https://docs.djangoproject.com/en/5.2/ref/settings/#static-files
105105
#
106106

107107
STATIC_URL = '/static/'
@@ -114,7 +114,7 @@
114114
#
115115
# If you're using a postgres database, connecting over a local unix-domain
116116
# socket, then the following setting should work for you. Otherwise,
117-
# see https://docs.djangoproject.com/en/2.2/ref/settings/#databases
117+
# see https://docs.djangoproject.com/en/5.2/ref/settings/#databases
118118

119119
if os.getenv('DATABASE_TYPE') == 'postgres':
120120
DATABASES = {

‎patchwork/settings/dev.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#
2323
# Core settings
24-
# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
24+
# https://docs.djangoproject.com/en/5.2/ref/settings/#core-settings
2525
#
2626

2727
ADMINS = (('Joe Bloggs', 'jbloggs@example.com'),)
@@ -39,11 +39,11 @@
3939

4040
#
4141
# Auth settings
42-
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth
42+
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth
4343
#
4444

4545
# Use a faster, though less secure, password hasher for faster tests
46-
# https://docs.djangoproject.com/en/2.2/topics/testing/overview/#password-hashing
46+
# https://docs.djangoproject.com/en/5.2/topics/testing/overview/#password-hashing
4747
PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
4848

4949
#

‎patchwork/settings/production.example.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#
1515
# Core settings
16-
# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
16+
# https://docs.djangoproject.com/en/5.2/ref/settings/#core-settings
1717
#
1818

1919
# Security
@@ -50,8 +50,8 @@
5050

5151
#
5252
# Static files settings
53-
# https://docs.djangoproject.com/en/2.2/ref/settings/#static-files
54-
# https://docs.djangoproject.com/en/2.2/ref/contrib/staticfiles/#manifeststaticfilesstorage
53+
# https://docs.djangoproject.com/en/5.2/ref/settings/#static-files
54+
# https://docs.djangoproject.com/en/5.2/ref/contrib/staticfiles/#manifeststaticfilesstorage
5555
#
5656

5757
STATIC_ROOT = os.environ.get('STATIC_ROOT', '/srv/patchwork/htdocs/static')

0 commit comments

Comments
 (0)