Skip to content

Commit c3fba7d

Browse files
committed
Django v1.7
1 parent f125f28 commit c3fba7d

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

project/project/settings.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Django settings for project project.
33
44
For more information on this file, see
5-
https://docs.djangoproject.com/en/1.6/topics/settings/
5+
https://docs.djangoproject.com/en/1.7/topics/settings/
66
77
For the full list of settings and their values, see
8-
https://docs.djangoproject.com/en/1.6/ref/settings/
8+
https://docs.djangoproject.com/en/1.7/ref/settings/
99
"""
1010

1111
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@@ -14,7 +14,7 @@
1414

1515

1616
# Quick-start development settings - unsuitable for production
17-
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
17+
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
1818

1919
# SECURITY WARNING: keep the secret key used in production secret!
2020
SECRET_KEY = '{SECRET_KEY}'
@@ -43,6 +43,7 @@
4343
'django.middleware.common.CommonMiddleware',
4444
'django.middleware.csrf.CsrfViewMiddleware',
4545
'django.contrib.auth.middleware.AuthenticationMiddleware',
46+
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
4647
'django.contrib.messages.middleware.MessageMiddleware',
4748
'django.middleware.clickjacking.XFrameOptionsMiddleware',
4849
)
@@ -53,7 +54,7 @@
5354

5455

5556
# Database
56-
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
57+
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
5758

5859
DATABASES = {
5960
'default': {
@@ -63,7 +64,7 @@
6364
}
6465

6566
# Internationalization
66-
# https://docs.djangoproject.com/en/1.6/topics/i18n/
67+
# https://docs.djangoproject.com/en/1.7/topics/i18n/
6768

6869
LANGUAGE_CODE = 'en-us'
6970

@@ -77,6 +78,6 @@
7778

7879

7980
# Static files (CSS, JavaScript, Images)
80-
# https://docs.djangoproject.com/en/1.6/howto/static-files/
81+
# https://docs.djangoproject.com/en/1.7/howto/static-files/
8182

8283
STATIC_URL = '/static/'

project/project/urls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from django.conf.urls import patterns, include, url
2-
32
from django.contrib import admin
4-
admin.autodiscover()
53

64
urlpatterns = patterns('',
75
# Examples:

project/project/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
88
"""
99

1010
import os

0 commit comments

Comments
 (0)