Skip to content

Commit 9d3b3f9

Browse files
committed
Fix building of demo site
Still needs more attention but this fixes the problems when running "make demo".
1 parent 41a4b8c commit 9d3b3f9

6 files changed

+1595
-13
lines changed

sites/demo/apps/order/migrations/0014_auto__chg_field_billingaddress_postcode__chg_field_shippingaddress_pos.py

+386
Large diffs are not rendered by default.

sites/demo/apps/order/migrations/0015_auto__del_field_shippingeventtype_is_required__del_field_shippingevent.py

+395
Large diffs are not rendered by default.

sites/demo/apps/order/migrations/0016_auto__add_field_order_currency__add_field_line_stockrecord.py

+404
Large diffs are not rendered by default.

sites/demo/apps/order/migrations/0017_auto__add_field_order_shipping_code.py

+397
Large diffs are not rendered by default.

sites/demo/fixtures/shipping-event-types.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,24 @@
33
"pk": 1,
44
"model": "order.shippingeventtype",
55
"fields": {
6-
"is_required": false,
76
"code": "shipped",
8-
"name": "Shipped",
9-
"sequence_number": 0
7+
"name": "Shipped"
108
}
119
},
1210
{
1311
"pk": 2,
1412
"model": "order.shippingeventtype",
1513
"fields": {
16-
"is_required": false,
1714
"code": "returned",
18-
"name": "Returned",
19-
"sequence_number": 0
15+
"name": "Returned"
2016
}
2117
},
2218
{
2319
"pk": 3,
2420
"model": "order.shippingeventtype",
2521
"fields": {
26-
"is_required": false,
2722
"code": "cancelled",
28-
"name": "Cancelled",
29-
"sequence_number": 0
23+
"name": "Cancelled"
3024
}
3125
}
32-
]
26+
]

sites/demo/settings.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SEND_BROKEN_LINK_EMAILS = False
2323

2424
ADMINS = (
25-
('David', '[email protected]'),
25+
('David Winterbottom', '[email protected]'),
2626
)
2727
EMAIL_SUBJECT_PREFIX = '[Oscar demo] '
2828
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
@@ -163,6 +163,11 @@
163163
'format': '%(levelname)s %(message)s'
164164
},
165165
},
166+
'filters': {
167+
'require_debug_false': {
168+
'()': 'django.utils.log.RequireDebugFalse'
169+
}
170+
},
166171
'handlers': {
167172
'null': {
168173
'level': 'DEBUG',
@@ -188,6 +193,7 @@
188193
'mail_admins': {
189194
'level': 'ERROR',
190195
'class': 'django.utils.log.AdminEmailHandler',
196+
'filters': ['require_debug_false'],
191197
},
192198
},
193199
'loggers': {
@@ -257,7 +263,7 @@
257263
'django.contrib.auth.backends.ModelBackend',
258264
)
259265

260-
LOGIN_REDIRECT_URL = '/accounts/'
266+
LOGIN_REDIRECT_URL = '/'
261267
APPEND_SLASH = True
262268

263269
# Haystack settings
@@ -281,7 +287,7 @@
281287
OSCAR_ALLOW_ANON_CHECKOUT = True
282288

283289
OSCAR_SHOP_NAME = 'Oscar'
284-
OSCAR_SHOP_TAGLINE = 'Demo site'
290+
OSCAR_SHOP_TAGLINE = 'Demo'
285291

286292
COMPRESS_ENABLED = False
287293
COMPRESS_PRECOMPILERS = (

0 commit comments

Comments
 (0)