You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

urls.py 709B

123456789101112131415161718192021
  1. from django.conf.urls.defaults import *
  2. from django.conf import settings
  3. from oscar.views import home
  4. urlpatterns = patterns('',
  5. (r'product/', include('oscar.product.urls')),
  6. (r'basket/', include('oscar.basket.urls')),
  7. (r'checkout/', include('oscar.checkout.urls')),
  8. (r'order-management/', include('oscar.order_management.urls')),
  9. (r'accounts/', include('oscar.customer.urls')),
  10. (r'promotions/', include('oscar.promotions.urls')),
  11. (r'reports/', include('oscar.reports.urls')),
  12. (r'^$', home),
  13. )
  14. if settings.DEBUG:
  15. urlpatterns += patterns('django.views.static',
  16. url(r'^media/(?P<path>.*)$', 'serve',
  17. {'document_root': settings.MEDIA_ROOT}),
  18. )