-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
executable file
·37 lines (32 loc) · 1.08 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.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from views import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^home$', home),
(r'^login$', login),
(r'^logged$', login),
(r'^logout$', log_out),
(r'^contact$', contact),
(r'^send$', contact),
(r'^loans$', loans),
(r'^payments$', payments),
(r'^transfer$', transfer),
(r'^sucess$', sucess),
(r'^balance$', balance),
(r'^about$', about),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
if settings.SERVE_STATIC_FILES:
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)
# staticfiles
urlpatterns += staticfiles_urlpatterns()