-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
23 lines (20 loc) · 842 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
import settings
from django.conf.urls import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^$', 'problems.views.index', {'template_name': 'problems/index.html'}),
(r'^problems/', include('problems.urls')),
(r'^accounts/', include('accounts.urls')),
(r'^files/', include('database_files.urls')),
(r'^pages/', include('flat_pages.urls')),
(r'^xml_rpc_srv/', 'xmlrpc.handler.rpc_handler'),
url(r'^static/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': settings.STATIC_ROOT},
name='static'),
(r'^admin/', include(admin.site.urls)),
)