Browse Source

Update links to Django documentation

pull/190/head
Lumir Balhar 4 years ago
committed by Lumír 'Frenzy' Balhar
parent
commit
73c4ab159c
4 changed files with 11 additions and 11 deletions
  1. +1
    -1
      README.md
  2. +8
    -8
      project/settings.py
  3. +1
    -1
      project/urls.py
  4. +1
    -1
      project/wsgi.py

+ 1
- 1
README.md View File

@ -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. 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. The steps in this document assume that you have access to an OpenShift deployment that you can deploy applications on.


+ 8
- 8
project/settings.py View File

@ -1,13 +1,13 @@
""" """
Django settings for this project. 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 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 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 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 # 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! # SECURITY WARNING: keep the secret key used in production secret!
# The SECRET_KEY is provided via an environment variable in OpenShift # The SECRET_KEY is provided via an environment variable in OpenShift
@ -80,7 +80,7 @@ WSGI_APPLICATION = 'project.wsgi.application'
# Database # Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
from . import database from . import database
@ -92,7 +92,7 @@ DATABASES = {
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Password validation # 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 = [ AUTH_PASSWORD_VALIDATORS = [
{ {
@ -111,7 +111,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
@ -125,7 +125,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # 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_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')


+ 1
- 1
project/urls.py View File

@ -1,7 +1,7 @@
"""project URL Configuration """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: 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: Examples:
Function views Function views
1. Add an import: from my_app import views 1. Add an import: from my_app import views


+ 1
- 1
project/wsgi.py View File

@ -4,7 +4,7 @@ WSGI config for this project.
It exposes the WSGI callable as a module-level variable named ``application``. It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see 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 import os


Loading…
Cancel
Save