Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 1.09 KB
from django.conf.urls.defaults import *
from ecomstore import settings
from django.contrib import admin
admin.autodiscover()
import os
static = os.path.join(
os.path.dirname(__file__), 'static'
)
urlpatterns = patterns('',
(r'^catalog/?', 'views.home'),
(r'^admin/', include(admin.site.urls)),
(r'^', include('catalog.urls')),
(r'^cart/', include('cart.urls')),
(r'^checkout/', include('checkout.urls')),
(r'^accounts/', include('accounts.urls')),
(r'^accounts/', include('django.contrib.auth.urls')),
(r'^search/', include('search.urls')),
(r'^', include('marketing.urls')),
(r'^billing/', include('billing.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{ 'document_root' : static }),
)
handler404 = 'ecomstore.views.file_not_found_404'