From dc249c089529f42168fb4b4390637ee23e5598df Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Thu, 17 Jun 2021 10:36:10 +0200 Subject: [PATCH] Update links to Django documentation --- README.md | 2 +- project/settings.py | 16 ++++++++-------- project/urls.py | 2 +- project/wsgi.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 420bc108..7231c92c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a [Django](http://www.djangoproject.com) project that you can use as the starting point to develop your own and deploy it on an [OpenShift](https://github.com/openshift/origin) cluster. -**NOTE:** This is the latest version of this example with Django 2.2 LTS which works with RHEL/Centos 8 and Python 3 only. If you are looking for the version for RHEL/Centos 7 or Python 2, it's in the [master branch](https://github.com/sclorg/django-ex/tree/master). +**NOTE:** This is the latest version of this example with Django 3.2 LTS which works with RHEL/Centos 8 and Python 3 only. If you are looking for the version for RHEL/Centos 7 or Python 2, it's in the [master branch](https://github.com/sclorg/django-ex/tree/master). The steps in this document assume that you have access to an OpenShift deployment that you can deploy applications on. diff --git a/project/settings.py b/project/settings.py index 64b58df9..439789ac 100644 --- a/project/settings.py +++ b/project/settings.py @@ -1,13 +1,13 @@ """ Django settings for this project. -Generated by 'django-admin startproject' using Django 2.2.12. +Generated by 'django-admin startproject' using Django 3,2,4. For more information on this file, see -https://docs.djangoproject.com/en/2.2/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/2.2/ref/settings/ +https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os @@ -17,7 +17,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! # The SECRET_KEY is provided via an environment variable in OpenShift @@ -80,7 +80,7 @@ WSGI_APPLICATION = 'project.wsgi.application' # Database -# https://docs.djangoproject.com/en/2.2/ref/settings/#databases +# https://docs.djangoproject.com/en/3.2/ref/settings/#databases from . import database @@ -92,7 +92,7 @@ DATABASES = { DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' # Password validation -# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators +# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { @@ -111,7 +111,7 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization -# https://docs.djangoproject.com/en/2.2/topics/i18n/ +# https://docs.djangoproject.com/en/3.2/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -125,7 +125,7 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/2.2/howto/static-files/ +# https://docs.djangoproject.com/en/3.2/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') diff --git a/project/urls.py b/project/urls.py index b631d2db..a0757a30 100644 --- a/project/urls.py +++ b/project/urls.py @@ -1,7 +1,7 @@ """project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/2.2/topics/http/urls/ + https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views diff --git a/project/wsgi.py b/project/wsgi.py index 88349e8f..f799b477 100644 --- a/project/wsgi.py +++ b/project/wsgi.py @@ -4,7 +4,7 @@ WSGI config for this 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/2.2/howto/deployment/wsgi/ +https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os