-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
37 lines (31 loc) · 1.75 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
from django.conf.urls.defaults import patterns, include, url
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from r3play.settings import DEBUG
from django.contrib.auth.views import login, logout
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'r3play.views.home', name='home'),
# url(r'^r3play/', include('r3play.r3playapp.urls')),
url(r'^adm1n/doc/', include('django.contrib.admindocs.urls')),
url(r'^adm1n/', include(admin.site.urls)),
url(r'^$', 'r3play.r3playapp.views.index', name='index'),
url(r'^home/$', 'r3play.r3playapp.views.home', name='home'),
url(r'^home/(?P<genero>\d+)$', 'r3play.r3playapp.views.home', name='home'),
url(r'^filme/(?P<filme_id>\d+)/$', 'r3play.r3playapp.views.filme', name='filme'),
url(r'^busca/$', 'r3play.r3playapp.views.busca', name='busca'),
url(r'^categorias/$', 'r3play.r3playapp.views.categorias', name='categorias'),
url(r'^categoria/(?P<categoria_id>\d+)/$', 'r3play.r3playapp.views.categoria', name='categoria'),
url(r'^artistas/$', 'r3play.r3playapp.views.artistas', name='artistas'),
url(r'^artista/(?P<artista_id>\d+)/$', 'r3play.r3playapp.views.artista', name='artista'),
url(r'^diretores/$', 'r3play.r3playapp.views.diretores', name='diretores'),
url(r'^diretor/(?P<diretor_id>\d+)/$', 'r3play.r3playapp.views.diretor', name='diretor'),
url(r'^usuarios/$', 'r3play.r3playapp.views.usuarios', name='usuarios'),
url(r'^cinemas/$', 'r3play.r3playapp.views.cinemas', name='cinemas'),
url(r'^cinema/(?P<cinema_id>\d+)/$', 'r3play.r3playapp.views.cinema', name='cinema'),
(r'^accounts/login/$', login),
(r'^accounts/logout/$', logout),
)
#handler404 = 'r3playapp.views.p404'