1 | import os
|
---|
2 |
|
---|
3 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
---|
4 |
|
---|
5 |
|
---|
6 | DEBUG = True
|
---|
7 |
|
---|
8 | MAIN_INSTALLED_APPS = [
|
---|
9 | 'django.contrib.admin',
|
---|
10 | 'django.contrib.auth',
|
---|
11 | 'django.contrib.contenttypes',
|
---|
12 | 'django.contrib.sessions',
|
---|
13 | 'django.contrib.messages',
|
---|
14 | 'django.contrib.staticfiles',
|
---|
15 | 'client',
|
---|
16 | ]
|
---|
17 |
|
---|
18 | MAIN_MIDDLEWARE_CLASSES = [
|
---|
19 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
---|
20 | 'django.middleware.common.CommonMiddleware',
|
---|
21 | 'django.middleware.csrf.CsrfViewMiddleware',
|
---|
22 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
---|
23 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
---|
24 | 'django.contrib.messages.middleware.MessageMiddleware',
|
---|
25 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
---|
26 | 'django.middleware.security.SecurityMiddleware',
|
---|
27 | ]
|
---|
28 |
|
---|
29 | if DEBUG:
|
---|
30 | from chi.dev.settings import *
|
---|
31 | else:
|
---|
32 | from chi.prod.settings import *
|
---|
33 |
|
---|
34 | INSTALLED_APPS = MAIN_INSTALLED_APPS + MORE_INSTALLED_APPS
|
---|
35 | MIDDLEWARE_CLASSES = MAIN_MIDDLEWARE_CLASSES + MORE_MIDDLEWARE_CLASSES
|
---|
36 |
|
---|
37 | WSGI_APPLICATION = 'chi.wsgi.application'
|
---|