forked from eos87/sisme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (25 loc) · 1.1 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
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from sisme.settings import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'sisme.views.home'),
url(r'^index/$', 'sisme.views.index'),
url(r'^generales/$', 'sisme.fed.views.generales', name='generales'),
url(r'^ajax/orgs/$', 'sisme.utils.get_orgs'),
url(r'^xls/$', 'sisme.utils.save_as_xls'),
url(r'^graph-params/$', 'sisme.utils.graph_params'),
url(r'^view-graph/$', 'sisme.utils.view_graph'),
url(r'^ajax/meses/$', 'sisme.utils.ajax_meses'),
url(r'^a/', include('sisme.contraparte.urls')),
url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}),
url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += staticfiles_urlpatterns()
if DEBUG:
urlpatterns += patterns('',
(r'^uploads/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),
)