-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
108 lines (81 loc) · 2.52 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import os.path
from djangoappengine.settings_base import *
SECRET_KEY = '=r-$b*8hglm+858&9t043hlm6-&6-3d3vfc4((7yd0dbrakhvi'
INSTALLED_APPS = (
'djangoappengine',
'djangotoolbox',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.humanize',
'mediagenerator',
# Apps
'socialauth',
'newsfeed',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'mediagenerator.middleware.MediaMiddleware',
#'extras.middleware.CleanWhiteSpaceMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
)
ADMIN_MEDIA_PREFIX = '/media/admin/'
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),)
ROOT_URLCONF = 'urls'
# MY SETTING
# Auth
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
AUTH_PROFILE_MODULE = 'socialauth.UserProfile'
# MEDIA GENERATOR SETTING
MEDIA_DEV_MODE = DEBUG
DEV_MEDIA_URL = '/devmedia/'
PRODUCTION_MEDIA_URL = '/media/'
GLOBAL_MEDIA_DIRS = (os.path.join(os.path.dirname(__file__), 'media'),)
MEDIA_BUNDLES = (
('main.css',
'css/screen.css',
'css/main.css',
),
('print.css',
'css/print.css'
),
('ie.css',
'css/ie.css'
),
('main.js',
'js/jquery-1.4.4.js',
#'js/mootools-more-1.3.js',
'js/main.js'
),
)
ROOT_MEDIA_FILTERS = {
'js': 'mediagenerator.filters.yuicompressor.YUICompressor',
'css': 'mediagenerator.filters.yuicompressor.YUICompressor',
}
YUICOMPRESSOR_PATH = os.path.join(os.path.dirname(__file__),
'tools/yuicompressor.jar')
#END MEDIA GENERATOR SETTING
TIME_ZONE = 'Asia/Jakarta'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
CONSUMER_KEY = '6gFhpxXSeSi2OHGpAnWZw'
CONSUMER_SECRET = 'Wrz4sJrhHvZlrGUU6Djp85GWX0DuYM6q09gs42Gvq4'
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
# TWITTER SETTING
if DEBUG:
TWITTER_CONSUMER_KEY = 'mSfl4UC4pQgILTqNWGaoA'
TWITTER_CONSUMER_SECRET = 'Fls41aDyjt8T4Qqw3XS1Zsu58kpRJK7dp2fCeFUYBU'
else:
TWITTER_CONSUMER_KEY = 'Jw1CVRMB6g0T4tqSzAPI4g'
TWITTER_CONSUMER_SECRET = 'VM6OTzlhbyDsH11JiOZvS6689TnVUNHfwa9C8Bs7BM'