Skip to content
Snippets Groups Projects
Commit f4a24d00 authored by frekk's avatar frekk
Browse files

updated to django 1.7->2.1 and fixed for python 3.7

parent 58bee23f
Branches
Tags
No related merge requests found
......@@ -2,24 +2,22 @@
Django settings for UCC Gumby Management System (GMS) project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
# import local settings
from gms.settings_local import *
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# import local settings
from gms.settings_local import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = ['secure.ucc.asn.au',]
# Application definition
INSTALLED_APPS = (
......@@ -32,15 +30,14 @@ INSTALLED_APPS = (
'memberdb',
)
MIDDLEWARE_CLASSES = (
MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
]
ROOT_URLCONF = 'gms.urls'
......@@ -68,10 +65,10 @@ USE_TZ = True
STATIC_URL = '/members/media/'
STATIC_ROOT = '/services/gms/static'
AUTHENTICATION_BACKENDS = (
AUTHENTICATION_BACKENDS = [
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',
)
]
import ldap
from django_auth_ldap.config import LDAPSearch, PosixGroupType
......
......@@ -5,6 +5,7 @@ DEBUG = True
ADMINS = (
('UCC Committee', 'committee-only@ucc.asn.au'),
('David Adam', 'zanchey@ucc.gu.uwa.edu.au'),
('Felix von Perger', 'frekk@ucc.asn.au'),
)
DATABASES = {
......@@ -21,4 +22,4 @@ DATABASES = {
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'oB8fVqxJPfeL0MomVCwExU13H3ajZd9vWFgCpL5RMuhR4JOqSXemYasppIdimhLk'
ALLOWED_HOSTS = ['secure.ucc.asn.au']
ALLOWED_HOSTS = []
from django.conf.urls import include, url
from django.urls import path
from django.contrib import admin
admin.site.site_header = "Gumby Management System"
admin.site.site_title = "UCC Gumby Management System"
admin.site.index_title = "Membership Database"
urlpatterns = (
# Examples:
# url(r'^$', 'gms.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include(admin.site.urls)),
)
urlpatterns = [
path('', admin.site.urls),
]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment