1 # -*- coding: utf-8 -*- |
|
2 from django.conf.urls.defaults import patterns, include, url |
|
3 from django.contrib import admin |
|
4 from django.views.generic import TemplateView |
|
5 #from hdalab.views.ajax import filter |
|
6 |
|
7 # Uncomment the next two lines to enable the admin: |
|
8 # from django.contrib import admin |
|
9 # admin.autodiscover() |
|
10 |
|
11 urlpatterns = patterns('', |
|
12 # Examples: |
|
13 # url(r'^$', 'hdalab.views.home', name='home'), |
|
14 # url(r'^hdalab/', include('hdalab.foo.urls')), |
|
15 |
|
16 # Uncomment the admin/doc line below to enable admin documentation: |
|
17 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
18 |
|
19 # Uncomment the next line to enable the admin: |
|
20 url(r'^admin/', include(admin.site.urls)), |
|
21 |
|
22 url(r'^i18n/', include('django.conf.urls.i18n')), |
|
23 url('^jsi18n/?$', 'django.views.i18n.javascript_catalog', name='jsi18n.all'), |
|
24 url('^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog', {'domain':'djangojs'}, name='jsi18n'), |
|
25 |
|
26 url(r'^facettes/', TemplateView.as_view(template_name="facettes.html"), name='facettes'), |
|
27 url(r'^categories/', TemplateView.as_view(template_name="categories.html"), name='categories'), |
|
28 url(r'^thesaurus/', TemplateView.as_view(template_name="thesaurus.html"), name='thesaurus'), |
|
29 url(r'^$', TemplateView.as_view(template_name="index.html"), name='home'), |
|
30 |
|
31 url(r'^notice/(?P<hda_id>[\w-]+)$', 'hdalab.views.pages.datasheet', name='notice') |
|
32 |
|
33 ) |
|
34 |
|
35 urlpatterns += patterns('hdalab.views.ajax', |
|
36 (r'^a/filter$', 'filter', {}, 'filter'), |
|
37 (r'^a/sessioninfo$', 'sessioninfo', {}, 'session_info'), |
|
38 (r'^a/tagsearch$', 'tagsearch', {}, 'tag_search'), |
|
39 (r'^a/catsearch$', 'catsearch', {}, 'cat_search'), |
|
40 (r'^a/cattree$', 'cattree', {}, 'cat_tree'), |
|
41 (r'^a/filltree$', 'filltree', {}, 'fill_tree'), |
|
42 ) |
|