]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Replace references to Django 1.11 docs
authorStephen Finucane <stephen@that.guru>
Wed, 8 Apr 2020 21:21:59 +0000 (22:21 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 8 Apr 2020 22:30:49 +0000 (23:30 +0100)
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>
docs/deployment/installation.rst
docs/deployment/upgrading.rst
docs/development/installation.rst
patchwork/settings/base.py
patchwork/settings/dev.py
patchwork/settings/production.example.py

index 12801a7948d22fff36a217339cd17e511b0f1344..80b53e3fce7961a47d7b5a16e0485d7750d0371d 100644 (file)
@@ -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
 ~~~~~~~~~~~~~~~~~~~~~~~~
index d368509dc1710bcefd60abf238a4cc994d11c5eb..3507da4147f5b592a6d5900bd74fec50d3e6060e 100644 (file)
@@ -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/
index d540b76096f152eafce50ebdfee8df493a6bf394..33ebd96c4d7b9139297e56fdfd7549ca7c04075b 100644 (file)
@@ -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
index 86612d7a2aa4543f9c99f2afd94fe285506e218f..5160b4fabf5a5a574c2bdbef2a6aaa1380bbbfe2 100644 (file)
@@ -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/'
index c5afe0d5c8d34b5e5ab824f39b217844149a9119..aa3ee3c5108b43980770f64e05d0c88398af1856 100644 (file)
@@ -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']
 
 #
index 80585374c9ff3d16c51d1694189c2e395654b14b..d51dcddf2b0243a7f3a45bdb906f6f0e93bf8cef 100644 (file)
@@ -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')