summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-04-08 22:21:59 +0100
committerStephen Finucane <stephen@that.guru>2020-04-08 23:30:49 +0100
commit82e352ae5b4c2f9be666fdccea96845c1dc14d5b (patch)
tree45a1341478bc3103610162b6e64446e8de1852e4
parentdc9c4fe12c1af3efe578e2ac428aed01969bf95b (diff)
downloadpatchwork-82e352ae5b4c2f9be666fdccea96845c1dc14d5b.tar
patchwork-82e352ae5b4c2f9be666fdccea96845c1dc14d5b.tar.gz
Replace references to Django 1.11 docs
This is a straight forward swap, thankfully. Django 2.2 is chosen as it's the latest LTS. Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--docs/deployment/installation.rst6
-rw-r--r--docs/deployment/upgrading.rst2
-rw-r--r--docs/development/installation.rst2
-rw-r--r--patchwork/settings/base.py8
-rw-r--r--patchwork/settings/dev.py6
-rw-r--r--patchwork/settings/production.example.py8
6 files changed, 16 insertions, 16 deletions
diff --git a/docs/deployment/installation.rst b/docs/deployment/installation.rst
index 12801a7..80b53e3 100644
--- a/docs/deployment/installation.rst
+++ b/docs/deployment/installation.rst
@@ -154,7 +154,7 @@ We will install this under ``/opt``, though this is only a suggestion:
web server's document root as this risks the possibility that people may be
able to view your code over the Web. This is a security risk.
- __ https://docs.djangoproject.com/en/1.11/intro/tutorial01/#creating-a-project
+ __ https://docs.djangoproject.com/en/2.2/intro/tutorial01/#creating-a-project
Next we require Python. If not already installed, then you should do so now.
Patchwork supports both Python 2.7 and Python 3.3+, though we're going to use
@@ -211,7 +211,7 @@ variables, you should export each setting using the appropriate name, such as
``DJANGO_SECRET_KEY``, ``DATABASE_NAME`` or ``EMAIL_HOST``, instead of
modifying the ``production.py`` file as we've done below.
-__ https://docs.djangoproject.com/en/1.11/ref/settings/
+__ https://docs.djangoproject.com/en/2.2/ref/settings/
Databases
^^^^^^^^^
@@ -413,7 +413,7 @@ address(es) from which you will be serving this domain. For example:
ALLOWED_HOSTS = ('.example.com', )
-__ https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
+__ https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts
Create systemd Unit File
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/deployment/upgrading.rst b/docs/deployment/upgrading.rst
index d368509..3507da4 100644
--- a/docs/deployment/upgrading.rst
+++ b/docs/deployment/upgrading.rst
@@ -69,4 +69,4 @@ which must be applied before starting the instance. To do this, run the
For more information on migrations, refer to `the Django documentation`__.
-__ https://docs.djangoproject.com/en/1.11/topics/migrations/
+__ https://docs.djangoproject.com/en/2.2/topics/migrations/
diff --git a/docs/development/installation.rst b/docs/development/installation.rst
index d540b76..33ebd96 100644
--- a/docs/development/installation.rst
+++ b/docs/development/installation.rst
@@ -210,7 +210,7 @@ respectively on Debian-based Debian-based distros like Ubuntu and
supported`__. You will find some tests provided by Patchwork fail and some
patches you develop may fail in production due to these differences.
-__ https://docs.djangoproject.com/en/1.11/ref/databases/
+__ https://docs.djangoproject.com/en/2.2/ref/databases/
__ https://www.sqlite.org/faq.html#q18
Example Installation
diff --git a/patchwork/settings/base.py b/patchwork/settings/base.py
index 86612d7..5160b4f 100644
--- a/patchwork/settings/base.py
+++ b/patchwork/settings/base.py
@@ -9,7 +9,7 @@ ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
#
# Core settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#core-settings
+# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
#
INSTALLED_APPS = [
@@ -73,7 +73,7 @@ SERVER_EMAIL = DEFAULT_FROM_EMAIL
#
# Auth settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth
+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth
#
LOGIN_URL = 'auth_login'
@@ -83,7 +83,7 @@ LOGIN_REDIRECT_URL = 'user-profile'
#
# Sites settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#sites
+# https://docs.djangoproject.com/en/2.2/ref/settings/#sites
#
SITE_ID = 1
@@ -91,7 +91,7 @@ SITE_ID = 1
#
# Static files settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#static-files
+# https://docs.djangoproject.com/en/2.2/ref/settings/#static-files
#
STATIC_URL = '/static/'
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index c5afe0d..aa3ee3c 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -21,7 +21,7 @@ except ImportError:
#
# Core settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#core-settings
+# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
#
ADMINS = (
@@ -63,11 +63,11 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
#
# Auth settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth
+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth
#
# Use a faster, though less secure, password hasher for faster tests
-# https://docs.djangoproject.com/es/1.11/topics/testing/overview/#password-hashing
+# https://docs.djangoproject.com/en/2.2/topics/testing/overview/#password-hashing
PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
#
diff --git a/patchwork/settings/production.example.py b/patchwork/settings/production.example.py
index 8058537..d51dcdd 100644
--- a/patchwork/settings/production.example.py
+++ b/patchwork/settings/production.example.py
@@ -13,7 +13,7 @@ from .base import * # noqa
#
# Core settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#core-settings
+# https://docs.djangoproject.com/en/2.2/ref/settings/#core-settings
#
# Security
@@ -56,7 +56,7 @@ ADMINS = (
#
# If you're using a postgres database, connecting over a local unix-domain
# socket, then the following setting should work for you. Otherwise,
-# see https://docs.djangoproject.com/en/1.11/ref/settings/#databases
+# see https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABASES = {
'default': {
@@ -71,8 +71,8 @@ DATABASES = {
#
# Static files settings
-# https://docs.djangoproject.com/en/1.11/ref/settings/#static-files
-# https://docs.djangoproject.com/en/1.11/ref/contrib/staticfiles/#manifeststaticfilesstorage
+# https://docs.djangoproject.com/en/2.2/ref/settings/#static-files
+# https://docs.djangoproject.com/en/2.2/ref/contrib/staticfiles/#manifeststaticfilesstorage
#
STATIC_ROOT = os.environ.get('STATIC_ROOT', '/srv/patchwork/htdocs/static')