equal
deleted
inserted
replaced
1 # -*- coding: utf-8 -*- |
1 # -*- coding: utf-8 -*- |
2 from django.conf.urls.defaults import patterns, include, url |
2 from django.conf.urls.defaults import patterns, include, url |
3 from django.contrib import admin |
3 from django.contrib import admin |
|
4 from django.views.generic import TemplateView |
|
5 #from hdalab.views.ajax import filter |
4 |
6 |
5 # Uncomment the next two lines to enable the admin: |
7 # Uncomment the next two lines to enable the admin: |
6 # from django.contrib import admin |
8 # from django.contrib import admin |
7 # admin.autodiscover() |
9 # admin.autodiscover() |
8 |
10 |
15 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
17 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
16 |
18 |
17 # Uncomment the next line to enable the admin: |
19 # Uncomment the next line to enable the admin: |
18 url(r'^admin/', include(admin.site.urls)), |
20 url(r'^admin/', include(admin.site.urls)), |
19 |
21 |
20 |
22 url(r'^$', TemplateView.as_view(template_name="index.html")), |
|
23 |
21 ) |
24 ) |
|
25 |
|
26 urlpatterns += patterns('hdalab.views.ajax', |
|
27 (r'^a/filter$', 'filter', {}, 'filter'), |
|
28 (r'^a/taginfo$', 'taginfo', {}, 'tag_info'), |
|
29 (r'^a/sessioninfo$', 'sessioninfo', {}, 'session_info'), |
|
30 (r'^a/tagsearch$', 'tagsearch', {}, 'tag_search'), |
|
31 ) |