-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
29 lines (20 loc) · 783 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
24
25
26
27
28
29
from django.conf.urls import include, url
from django.contrib import admin
from aesthetic_computation.views import home, post, arxiv, aasjobmap
urlpatterns = [
# index
url(r'^$', home, name='home'),
# single post
url(r'^(?P<id>[0-9]+)/$', post, name='post'),
# arxiv scraper
url(r'^arxiv707/$', arxiv, name='arxiv'),
url(r'^arxiv707/(?P<date>[A-Za-z0-9\-]+)/$', arxiv, name='arxiv'),
# admin
url(r'^admin707/', admin.site.urls, name='admin'),
# aas job map
url(r'^aasjobmap/', aasjobmap, name='aasjobmap'),
# category listing (must come last)
url(r'^(?P<category_name>[A-Za-z0-9&\-]+)/', home, name='category'),
]
handler404 = 'aesthetic_computation.views.handler404'
handler500 = 'aesthetic_computation.views.handler500'