Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

urls.py 1020B

12345678910111213141516171819202122232425262728293031323334
  1. from django.conf.urls import patterns, include
  2. from django.conf import settings
  3. from django.contrib import admin
  4. from django.conf.urls.static import static
  5. from stores.app import application as stores_app
  6. from stores.dashboard.app import application as dashboard_app
  7. from apps.app import application
  8. from datacash.app import application as datacash_app
  9. # These need to be imported into this namespace
  10. from oscar.views import handler500, handler404, handler403
  11. admin.autodiscover()
  12. urlpatterns = patterns('',
  13. (r'^admin/', include(admin.site.urls)),
  14. # Stores extension
  15. (r'^stores/', include(stores_app.urls)),
  16. (r'^dashboard/stores/', include(dashboard_app.urls)),
  17. # PayPal extension
  18. (r'^checkout/paypal/', include('paypal.express.urls')),
  19. # Datacash extension
  20. (r'^dashboard/datacash/', include(datacash_app.urls)),
  21. (r'', include(application.urls)),
  22. )
  23. if settings.DEBUG:
  24. urlpatterns += static(settings.MEDIA_URL,
  25. document_root=settings.MEDIA_ROOT)