1 """ |
|
2 Django settings for qmsk_www project. |
|
3 |
|
4 For more information on this file, see |
|
5 https://docs.djangoproject.com/en/1.7/topics/settings/ |
|
6 |
|
7 For the full list of settings and their values, see |
|
8 https://docs.djangoproject.com/en/1.7/ref/settings/ |
|
9 """ |
|
10 |
|
11 # Quick-start development settings - unsuitable for production |
|
12 # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
|
13 |
|
14 # SECURITY WARNING: keep the secret key used in production secret! |
|
15 SECRET_KEY = '&e#@fir!k-*w(=0$@j&0guyv8qq*mh7_55j6w@2=hm0x9^ya-2' |
|
16 |
|
17 # SECURITY WARNING: don't run with debug turned on in production! |
|
18 DEBUG = True |
|
19 |
|
20 TEMPLATE_DEBUG = True |
|
21 |
|
22 ALLOWED_HOSTS = [] |
|
23 |
|
24 |
|
25 ## Application definition |
|
26 INSTALLED_APPS = ( |
|
27 'django.contrib.staticfiles', |
|
28 ) |
|
29 |
|
30 MIDDLEWARE_CLASSES = ( |
|
31 |
|
32 ) |
|
33 |
|
34 ROOT_URLCONF = 'qmsk_www.urls' |
|
35 |
|
36 WSGI_APPLICATION = 'qmsk_www.wsgi.application' |
|
37 |
|
38 |
|
39 ## Database |
|
40 # https://docs.djangoproject.com/en/1.7/ref/settings/#databases |
|
41 |
|
42 DATABASES = { |
|
43 |
|
44 } |
|
45 |
|
46 ## Internationalization |
|
47 # https://docs.djangoproject.com/en/1.7/topics/i18n/ |
|
48 |
|
49 LANGUAGE_CODE = 'en-us' |
|
50 |
|
51 TIME_ZONE = 'UTC' |
|
52 |
|
53 USE_I18N = True |
|
54 |
|
55 USE_L10N = True |
|
56 |
|
57 USE_TZ = True |
|
58 |
|
59 ## Static files (CSS, JavaScript, Images) |
|
60 # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
|
61 STATIC_URL = '/static/' |
|
62 STATICFILES_DIRS = ( |
|
63 './qmsk_www/static', |
|
64 ) |
|
65 |
|
66 ## Site templates |
|
67 TEMPLATE_DIRS = ( |
|
68 './qmsk_www/templates', |
|
69 ) |
|
70 |
|
71 ## Logging |
|
72 LOGGING = { |
|
73 'version': 1, |
|
74 'disable_existing_loggers': False, |
|
75 'formatters': { |
|
76 'qmsk': { |
|
77 'format': '[%(levelname)5s] %(module)20s:%(funcName)-20s : %(message)s', |
|
78 }, |
|
79 }, |
|
80 'handlers': { |
|
81 'console': { |
|
82 'level': 'DEBUG', |
|
83 'class': 'logging.StreamHandler', |
|
84 'formatter': 'qmsk', |
|
85 }, |
|
86 }, |
|
87 'loggers': { |
|
88 'qmsk_www_pages': { |
|
89 'handlers': [ 'console' ], |
|
90 'level': 'INFO', |
|
91 } |
|
92 }, |
|
93 } |
|
94 |
|
95 ## Custom |
|
96 INSTALLED_APPS += ( |
|
97 'qmsk_www_pages', |
|
98 ) |
|
99 |
|
100 QMSK_WWW_PAGES_DIR = './pages' |
|
101 QMSK_WWW_PAGES_SITE = "qmsk.net" |
|