-
Notifications
You must be signed in to change notification settings - Fork 4
/
urls.py
24 lines (20 loc) · 889 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^account/', include('account.urls')),
(r'^distribution/', include('distribution.urls')),
(r'^customer/', include('customer.urls')),
(r'^producer/', include('producer.urls')),
(r'^obscure/private/address/', include('paypal.standard.ipn.urls')),
url(r'^nopermissions/$', direct_to_template, {"template":"account/no_permissions.html"},
name="no_permissions"),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/home/bob/foodnetwork/media', 'show_indexes': True}),
)