-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.py
26 lines (22 loc) · 795 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
25
26
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('joints.views',
(r'^joint/(?P<joint_id>\d+)/review', 'review'),
(r'^joint/(?P<joint_id>\d+)/', 'joint'),
(r'^joints/(?P<state_abbr>\w+)/$', 'state'),
(r'^joints/$', 'states'),
(r'^search/$', 'search'),
(r'^$', 'index'),
)
urlpatterns += patterns('',
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^user/', include('registration.urls')),
(r'^contact/', include('contact_form.urls')),
)
if settings.LOCAL_MEDIA:
urlpatterns +=patterns('',
(r'^static/(.+)', 'django.views.static.serve', { 'document_root' : settings.STATIC_ROOT })
)