| author | cavaliet |
| Fri, 20 Jun 2014 13:10:39 +0200 | |
| changeset 279 | 177b508612f4 |
| parent 272 | 1c774f7a0341 |
| child 288 | 0bb9c29cd41d |
| permissions | -rw-r--r-- |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
# -*- coding: utf-8 -*- |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
272
diff
changeset
|
2 |
from django.conf.urls import patterns, include, url |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
3 |
from django.views.generic import TemplateView |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
4 |
#from hdalab.views.ajax import filter |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
# Uncomment the next two lines to enable the admin: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
# from django.contrib import admin |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
# admin.autodiscover() |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
urlpatterns = patterns('', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
# Examples: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
# url(r'^$', 'hdalab.views.home', name='home'), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
# url(r'^hdalab/', include('hdalab.foo.urls')), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
# Uncomment the next line to enable the admin: |
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
272
diff
changeset
|
19 |
#url(r'^admin/', include(admin.site.urls)), |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
|
| 135 | 21 |
url(r'^i18n/', include('django.conf.urls.i18n')), |
22 |
url('^jsi18n/?$', 'django.views.i18n.javascript_catalog', name='jsi18n.all'), |
|
23 |
url('^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog', {'domain':'djangojs'}, name='jsi18n'), |
|
24 |
||
| 131 | 25 |
url(r'^facettes/', TemplateView.as_view(template_name="facettes.html"), name='facettes'), |
| 205 | 26 |
url(r'^categories/', TemplateView.as_view(template_name="categories.html"), name='categories'), |
| 252 | 27 |
url(r'^thesaurus/', TemplateView.as_view(template_name="thesaurus.html"), name='thesaurus'), |
| 131 | 28 |
url(r'^$', TemplateView.as_view(template_name="index.html"), name='home'), |
| 253 | 29 |
|
30 |
url(r'^notice/(?P<hda_id>[\w-]+)$', 'hdalab.views.pages.datasheet', name='notice') |
|
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
31 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
) |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
33 |
|
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
34 |
urlpatterns += patterns('hdalab.views.ajax', |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
35 |
(r'^a/filter$', 'filter', {}, 'filter'), |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
36 |
(r'^a/sessioninfo$', 'sessioninfo', {}, 'session_info'), |
|
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
37 |
(r'^a/tagsearch$', 'tagsearch', {}, 'tag_search'), |
| 205 | 38 |
(r'^a/catsearch$', 'catsearch', {}, 'cat_search'), |
39 |
(r'^a/cattree$', 'cattree', {}, 'cat_tree'), |
|
| 248 | 40 |
(r'^a/filltree$', 'filltree', {}, 'fill_tree'), |
|
119
e3ebe3545f72
first implementation of django version.
ymh <ymh.work@gmail.com>
parents:
114
diff
changeset
|
41 |
) |