forked from sympy/sympy_gamma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
38 lines (26 loc) · 1.07 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
38
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
import os.path
p = os.path.join(os.path.dirname(__file__), 'media/')
urlpatterns = patterns(
'',
# Example:
# (r'^notebook/', include('notebook.foo.urls')),
(r'^$', 'app.views.index'),
(r'^input/', 'app.views.input'),
(r'^about/$', 'app.views.about'),
(r'^random', 'app.views.random_example'),
(r'user/remove/(?P<qid>.*)$', 'app.views.remove_query'),
(r'card/(?P<card_name>\w*)$', 'app.views.eval_card'),
(r'card_info/(?P<card_name>\w*)$', 'app.views.get_card_info'),
(r'card_full/(?P<card_name>\w*)$', 'app.views.get_card_full')
# 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')),
# Uncomment the next line to enable the admin:
# (r'^admin/(.*)', admin.site.root),
)
handler404 = 'app.views.view_404'
handler500 = 'app.views.view_500'