src/hdalab/urls.py
author cavaliet
Fri, 18 Jul 2014 13:29:53 +0200
changeset 298 8234cb238783
parent 297 0a742e5a25aa
child 299 8e00641076e7
permissions -rw-r--r--
renkan view first step
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
297
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
     4
from hdalab.views.renkan import RenkanGetPut, RenkanCopy, RenkanDelete,\
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
     5
    RenkanEdit
293
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
     6
from hdalab.views.profile import ProfileHome
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
# Uncomment the next two lines to enable the admin:
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
# from django.contrib import admin
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
# admin.autodiscover()
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
urlpatterns = patterns('',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    # Examples:
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    # url(r'^$', 'hdalab.views.home', name='home'),
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    # url(r'^hdalab/', include('hdalab.foo.urls')),
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    # Uncomment the admin/doc line below to enable admin documentation:
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    # Uncomment the next line to enable the admin:
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 272
diff changeset
    21
    #url(r'^admin/', include(admin.site.urls)),
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 131
diff changeset
    23
    url(r'^i18n/', include('django.conf.urls.i18n')),
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 131
diff changeset
    24
    url('^jsi18n/?$', 'django.views.i18n.javascript_catalog', name='jsi18n.all'),
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 131
diff changeset
    25
    url('^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog', {'domain':'djangojs'}, name='jsi18n'),
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 131
diff changeset
    26
    
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents: 119
diff changeset
    27
    url(r'^facettes/', TemplateView.as_view(template_name="facettes.html"), name='facettes'),
205
8ff4fd1a6e9c Added categories page
veltr
parents: 204
diff changeset
    28
    url(r'^categories/', TemplateView.as_view(template_name="categories.html"), name='categories'),
252
a46461f8a74f Separated Thesaurus and WP Categories
veltr
parents: 250
diff changeset
    29
    url(r'^thesaurus/', TemplateView.as_view(template_name="thesaurus.html"), name='thesaurus'),
131
9d5d9e6b7fbf Created Home view for Hdalab
veltr
parents: 119
diff changeset
    30
    url(r'^$', TemplateView.as_view(template_name="index.html"), name='home'),
253
1113c3874dd6 Added Datasheet View
veltr
parents: 252
diff changeset
    31
    
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents: 279
diff changeset
    32
    url(r'^notice/(?P<hda_id>[\w-]+)$', 'hdalab.views.pages.datasheet', name='notice'),
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents: 279
diff changeset
    33
    
297
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    34
    url(r'^renkan/edit/$', RenkanEdit.as_view(), name='renkan_edit'),
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents: 279
diff changeset
    35
    url(r'^renkan/getput/$', RenkanGetPut.as_view(), name='renkan_get_put'),
298
8234cb238783 renkan view first step
cavaliet
parents: 297
diff changeset
    36
    url(r'^renkan/view/$', TemplateView.as_view(template_name="renkan_view.html"), name='renkan_view'),
296
c69dfb9d410e copy renkan link active
cavaliet
parents: 293
diff changeset
    37
    url(r'^renkan/copy/(?P<rk_id>.*)$', RenkanCopy.as_view(), name='renkan_copy'),
297
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    38
    url(r'^renkan/delete/(?P<rk_id>.*)$', RenkanDelete.as_view(), name='renkan_delete'),
293
b33caeba7faa profile page first step
cavaliet
parents: 288
diff changeset
    39
    url(r'^profile/$', ProfileHome.as_view(), name='profile_home'),
119
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    40
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
)
119
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    42
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    43
urlpatterns += patterns('hdalab.views.ajax',
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    44
    (r'^a/filter$', 'filter', {}, 'filter'),
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    45
    (r'^a/sessioninfo$', 'sessioninfo', {}, 'session_info'),
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    46
    (r'^a/tagsearch$', 'tagsearch', {}, 'tag_search'),
205
8ff4fd1a6e9c Added categories page
veltr
parents: 204
diff changeset
    47
    (r'^a/catsearch$', 'catsearch', {}, 'cat_search'),
8ff4fd1a6e9c Added categories page
veltr
parents: 204
diff changeset
    48
    (r'^a/cattree$', 'cattree', {}, 'cat_tree'),
248
91bc8521e3cb Ajout de la navigation par thesaurus
veltr
parents: 238
diff changeset
    49
    (r'^a/filltree$', 'filltree', {}, 'fill_tree'),
119
e3ebe3545f72 first implementation of django version.
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    50
)