浏览代码

Brought settings_simple back in line with the latest apps.

It had become stale.
master
David Winterbottom 13 年前
父节点
当前提交
fce21e4ac0
共有 1 个文件被更改,包括 5 次插入26 次删除
  1. 5
    26
      sandbox/settings_simple.py

+ 5
- 26
sandbox/settings_simple.py 查看文件

@@ -89,6 +89,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
89 89
     'oscar.apps.search.context_processors.search_form',
90 90
     'oscar.apps.promotions.context_processors.promotions',
91 91
     'oscar.apps.checkout.context_processors.checkout',
92
+    'oscar.core.context_processors.metadata',
92 93
 ) 
93 94
 
94 95
 MIDDLEWARE_CLASSES = (
@@ -175,7 +176,7 @@ LOGGING = {
175 176
 }
176 177
 
177 178
 
178
-INSTALLED_APPS = (
179
+INSTALLED_APPS = [
179 180
     'django.contrib.auth',
180 181
     'django.contrib.contenttypes',
181 182
     'django.contrib.sessions',
@@ -187,32 +188,10 @@ INSTALLED_APPS = (
187 188
     # External apps
188 189
     'haystack',
189 190
     'south',
190
-    # Apps from oscar
191
-    'oscar',
192
-    'oscar.apps.analytics',
193
-    'oscar.apps.discount',
194
-    'oscar.apps.order',
195
-    'oscar.apps.checkout',
196
-    'oscar.apps.shipping',
197
-    'oscar.apps.catalogue',
198
-    'oscar.apps.catalogue.reviews',
199
-    'oscar.apps.basket',
200
-    'oscar.apps.payment',
201
-    'oscar.apps.offer',
202
-    'oscar.apps.address',
203
-    'oscar.apps.partner',
204
-    'oscar.apps.customer',
205
-    'oscar.apps.promotions',
206
-    'oscar.apps.search',
207
-    'oscar.apps.voucher',
208
-    'oscar.apps.dashboard',
209
-    'oscar.apps.dashboard.reports',
210
-    'oscar.apps.dashboard.users',
211
-    'oscar.apps.dashboard.orders',
212
-    'oscar.apps.dashboard.promotions',
213
-    'oscar.apps.dashboard.catalogue',
214 191
     'sorl.thumbnail',
215
-)
192
+]
193
+from oscar import get_core_apps
194
+INSTALLED_APPS = INSTALLED_APPS + get_core_apps()
216 195
 
217 196
 AUTHENTICATION_BACKENDS = (
218 197
     'oscar.apps.customer.auth_backends.Emailbackend',

正在加载...
取消
保存