Skip to content

Instantly share code, notes, and snippets.

@mbrochh
Created June 29, 2011 07:40
Show Gist options
  • Save mbrochh/1053339 to your computer and use it in GitHub Desktop.
Save mbrochh/1053339 to your computer and use it in GitHub Desktop.
Catching shop/cart/ URL for overriding django-shop's view class
from django.conf.urls.defaults import *
from django.contrib import admin
from shop import urls as shop_urls
from shop_simplevariations import urls as simplevariations_urls
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^shop/cart/', include(simplevariations_urls)),
(r'^shop/', include(shop_urls)),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment