|
10 | 10 |
|
11 | 11 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
12 | 12 | import os
|
13 |
| -BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
14 | 13 |
|
| 14 | +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
15 | 15 |
|
16 | 16 | # Quick-start development settings - unsuitable for production
|
17 | 17 | # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
|
22 | 22 | # SECURITY WARNING: don't run with debug turned on in production!
|
23 | 23 | DEBUG = True
|
24 | 24 |
|
25 |
| -TEMPLATE_DEBUG = True |
26 |
| - |
27 | 25 | ALLOWED_HOSTS = []
|
28 | 26 |
|
29 |
| -TEMPLATE_CONTEXT_PROCESSORS = ( |
30 |
| - 'django.contrib.auth.context_processors.auth', |
31 |
| - "django.core.context_processors.request", |
32 |
| - |
33 |
| - # Disabling due to alluth>=0.21.0 changes |
34 |
| - # "allauth.account.context_processors.account", |
35 |
| - # "allauth.socialaccount.context_processors.socialaccount", |
36 |
| -) |
37 |
| - |
38 | 27 | # Application definition
|
39 | 28 |
|
40 | 29 | INSTALLED_APPS = (
|
|
71 | 60 |
|
72 | 61 | WSGI_APPLICATION = 'demo.wsgi.application'
|
73 | 62 |
|
74 |
| - |
75 | 63 | # Database
|
76 | 64 | # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
77 | 65 |
|
|
95 | 83 |
|
96 | 84 | USE_TZ = True
|
97 | 85 |
|
98 |
| - |
99 | 86 | # Static files (CSS, JavaScript, Images)
|
100 | 87 | # https://docs.djangoproject.com/en/1.7/howto/static-files/
|
101 | 88 |
|
102 | 89 | STATIC_URL = '/static/'
|
103 | 90 |
|
104 |
| -TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')] |
| 91 | +# TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')] |
| 92 | + |
| 93 | +TEMPLATES = [ |
| 94 | + { |
| 95 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 96 | + 'DIRS': [os.path.join(BASE_DIR, 'templates'), ], |
| 97 | + 'APP_DIRS': True, |
| 98 | + 'OPTIONS': { |
| 99 | + 'context_processors': [ |
| 100 | + 'django.template.context_processors.debug', |
| 101 | + 'django.template.context_processors.request', |
| 102 | + 'django.contrib.auth.context_processors.auth', |
| 103 | + 'django.contrib.messages.context_processors.messages', |
| 104 | + ], |
| 105 | + }, |
| 106 | + }, |
| 107 | +] |
105 | 108 |
|
106 | 109 | REST_SESSION_LOGIN = False
|
107 | 110 | EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
0 commit comments