-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
23 lines (19 loc) · 857 Bytes
/
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
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
urlpatterns = patterns('',
(r'^', include('paymentapi.urls')), # import urls from paymentapi app
(r'^test/', 'paymentapi.views.test'),
(r'^$', direct_to_template, {'template': 'payment/index.html'}),
# 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:
# (r'^admin/', include(admin.site.urls)),
)
from django.conf import settings
if settings.DEBUG:
import os.path
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': os.path.join(os.path.dirname(__file__), 'site-media').replace('\\','/'),
'show_indexes': True}),
)