forked from welbymcroberts/ClosedTV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
45 lines (37 loc) · 1.14 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DEBUG = False
TEMPLATE_DEBUG = DEBUG
TIME_ZONE = 'Europe/London'
LANGUAGE_CODE = 'en-GB'
SITE_ID = 1
USE_I18N = False
USE_L10N = False
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
#'django.middleware.csrf.CsrfViewMiddleware',
#'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'ClosedTV.middleware.TimerMiddleware',
'ClosedTV.middleware.GitMiddleware',
)
INTERNAL_IPS = ('94.236.7.190',)
ROOT_URLCONF = 'ClosedTV.urls'
INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.messages',
'ClosedTV.main',
)
try:
from local_settings import *
except ImportError:
pass
import subprocess as sp
GIT_SHA = sp.Popen(['git', '--git-dir', BASE_DIR+'/.git', 'rev-parse', 'HEAD'], stdout=sp.PIPE).communicate()[0].strip()