-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
37 lines (29 loc) · 1.23 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.contrib import admin
import os
site_media = os.path.join(
os.path.dirname(__file__), 'site_media'
)
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'plataforma.views.home', name='home'),
# url(r'^plataforma/', include('plataforma.foo.urls')),
url(r'^$', 'material.views.index', name='inicio'),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^material/$', 'material.views.index'),
(r'^material/add$', 'material.views.add'),
(r'^material/select_ajax$', 'material.views.select_ajax'),
(r'^login$', 'usuarios.views.login'),
(r'^salir$', 'usuarios.views.logout_view'),
(r'^registro$', 'usuarios.views.registro'),
(r'^buzon$', 'correos.views.index'),
(r'^buzon/out$', 'correos.views.out'),
(r'^buzon/componer$', 'correos.views.componer'),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': site_media}),
url(r'^chaining/', include('smart_selects.urls')),
)