-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappend_to_settings.py
54 lines (48 loc) · 1.83 KB
/
append_to_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
import os
DIRNAME = os.path.abspath(os.path.dirname(__file__))
LOCAL_DEV = True
MEDIA_ROOT = os.path.join(DIRNAME, 'static/')
MEDIA_URL = '/static/'
MIDDLEWARE_CLASSES = ("django.middleware.locale.LocaleMiddleware",
"django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.doc.XViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"satchmo.shop.SSLMiddleware.SSLRedirect",
"satchmo.recentlist.middleware.RecentProductMiddleware")
TEMPLATE_DIRS = (os.path.join(DIRNAME, "templates"))
TEMPLATE_CONTEXT_PROCESSORS = ('satchmo.shop.context_processors.settings',
'django.core.context_processors.auth',
'satchmo.recentlist.context_processors.recent_products',
)
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.comments',
'comment_utils',
'django.contrib.sitemaps',
'satchmo.caching',
'satchmo.configuration',
'satchmo.shop',
'satchmo.contact',
'satchmo.product',
'satchmo.shipping',
'satchmo.payment',
'satchmo.discount',
'satchmo.giftcertificate',
'satchmo.supplier',
'satchmo.thumbnail',
'satchmo.l10n',
'satchmo.tax',
'satchmo.recentlist',
)
AUTHENTICATION_BACKENDS = (
'satchmo.accounts.email-auth.EmailBackend',
'django.contrib.auth.backends.ModelBackend'
)
# Load the local settings
from local_settings import *
from qs_settings import *