|
1 | 1 | """ |
2 | | -Django settings for gettingstarted project. |
| 2 | +Django settings for gettingstarted project, on Heroku. Fore more info, see: |
| 3 | +https://github.com/heroku/heroku-django-template |
3 | 4 |
|
4 | 5 | For more information on this file, see |
5 | | -https://docs.djangoproject.com/en/1.6/topics/settings/ |
| 6 | +https://docs.djangoproject.com/en/1.8/topics/settings/ |
6 | 7 |
|
7 | 8 | For the full list of settings and their values, see |
8 | | -https://docs.djangoproject.com/en/1.6/ref/settings/ |
| 9 | +https://docs.djangoproject.com/en/1.8/ref/settings/ |
9 | 10 | """ |
10 | 11 |
|
11 | 12 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
|
18 | 19 |
|
19 | 20 |
|
20 | 21 | # Quick-start development settings - unsuitable for production |
21 | | -# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
| 22 | +# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ |
22 | 23 |
|
23 | 24 | # SECURITY WARNING: keep the secret key used in production secret! |
24 | 25 | SECRET_KEY = 'i+acxn5(akgsn!sr4^qgf(^m&*@+g1@u^t@=8s@axc41ml*f=s' |
|
49 | 50 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', |
50 | 51 | 'django.contrib.messages.middleware.MessageMiddleware', |
51 | 52 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
| 53 | + 'django.middleware.security.SecurityMiddleware', |
52 | 54 | ) |
53 | 55 |
|
54 | 56 | ROOT_URLCONF = 'gettingstarted.urls' |
55 | 57 |
|
| 58 | +TEMPLATES = [ |
| 59 | + { |
| 60 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 61 | + 'DIRS': [], |
| 62 | + 'APP_DIRS': True, |
| 63 | + 'OPTIONS': { |
| 64 | + 'context_processors': [ |
| 65 | + 'django.template.context_processors.debug', |
| 66 | + 'django.template.context_processors.request', |
| 67 | + 'django.contrib.auth.context_processors.auth', |
| 68 | + 'django.contrib.messages.context_processors.messages', |
| 69 | + ], |
| 70 | + }, |
| 71 | + }, |
| 72 | +] |
| 73 | + |
56 | 74 | WSGI_APPLICATION = 'gettingstarted.wsgi.application' |
57 | 75 |
|
58 | 76 |
|
59 | 77 | # Database |
60 | | -# https://docs.djangoproject.com/en/1.7/ref/settings/#databases |
| 78 | +# https://docs.djangoproject.com/en/1.8/ref/settings/#databases |
61 | 79 |
|
62 | 80 | DATABASES = { |
63 | 81 | 'default': { |
|
67 | 85 | } |
68 | 86 |
|
69 | 87 | # Internationalization |
70 | | -# https://docs.djangoproject.com/en/1.7/topics/i18n/ |
| 88 | +# https://docs.djangoproject.com/en/1.8/topics/i18n/ |
71 | 89 |
|
72 | 90 | LANGUAGE_CODE = 'en-us' |
73 | 91 | TIME_ZONE = 'UTC' |
|
89 | 107 | ALLOWED_HOSTS = ['*'] |
90 | 108 |
|
91 | 109 | # Static files (CSS, JavaScript, Images) |
92 | | -# https://docs.djangoproject.com/en/1.7/howto/static-files/ |
| 110 | +# https://docs.djangoproject.com/en/1.8/howto/static-files/ |
93 | 111 |
|
94 | 112 | BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
95 | 113 | STATIC_ROOT = 'staticfiles' |
|
0 commit comments