-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathurls.py
21 lines (17 loc) · 853 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
from apps.bechdel.views import HomeView, SearchView, MovieView, AllMovies, \
WhatIsTheTestView, BechdelBotView
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'bechdel.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# url(r'^admin/', include(admin.site.urls)),
url(r'^(?:bechdel/)?$', HomeView.as_view(), name='home'),
url(r'^(?:bechdel/)?search$', SearchView.as_view(), name='search'),
url(r'^(?:bechdel/)?movie/(?P<id>[0-9]+)$', MovieView.as_view(), name='movie'),
url(r'^(?:bechdel/)?movie$', AllMovies.as_view(), name='all_movies'),
url(r'^(?:bechdel/)?what$', WhatIsTheTestView.as_view(), name='what'),
url(r'^(?:bechdel/)?bot$', BechdelBotView.as_view(), name='bot'),
)