web/hdabo/urls.py
author ymh <ymh.work@gmail.com>
Fri, 08 Jul 2011 12:03:07 +0200
changeset 72 ba8ebabbaece
parent 63 03698c739b1d
child 73 83695a58e4d6
permissions -rw-r--r--
-correct css and display - add action to sort tags : bug #16 - correct text sort -correct text encoding #3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
from django.conf.urls.defaults import patterns, include, url
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.contrib import admin
53
50f3f48467e8 Set identification. It is required now.
cavaliet
parents: 51
diff changeset
     3
from django.contrib.auth import urls as auth_url
50f3f48467e8 Set identification. It is required now.
cavaliet
parents: 51
diff changeset
     4
0
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
# Uncomment the next two lines to enable the admin:
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
admin.autodiscover()
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
urlpatterns = patterns('',
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    # Examples:
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    # url(r'^$', 'hdabo.views.home', name='home'),
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    # url(r'^hdabo/', include('hdabo.foo.urls')),
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    # Uncomment the admin/doc line below to enable admin documentation:
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    # Uncomment the next line to enable the admin:
53
50f3f48467e8 Set identification. It is required now.
cavaliet
parents: 51
diff changeset
    18
    url(r'^accounts/', include(auth_url)),
50f3f48467e8 Set identification. It is required now.
cavaliet
parents: 51
diff changeset
    19
    url(r'^logout/', 'django.contrib.auth.views.logout_then_login'),
21
20d3375b6d28 reformat code
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    20
    url(r'^admin/', include(admin.site.urls)),
20d3375b6d28 reformat code
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    21
    url(r'^search/', include('haystack.urls')),
7
b5204be88f8e First views for home and sheet display, and navigation in sheet groups by location.
cavaliet
parents: 0
diff changeset
    22
    url(r'^$', 'hdabo.views.home', name='home'),
34
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    23
    url(r'^list/(?P<orga_id>[\w-]+)$', 'hdabo.views.list_for_orga', name='list_for_orga'),
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    24
    url(r'^list/(?P<orga_id>[\w-]+)/(?P<valid>[\w-]+)/$', 'hdabo.views.list_for_orga', name='list_for_orga'),
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    25
    url(r'^list/(?P<orga_id>[\w-]+)/(?P<valid>[\w-]+)/(?P<start_index>[\w-]+)/$', 'hdabo.views.list_for_orga', name='list_for_orga'),
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    26
    url(r'^list/(?P<orga_id>[\w-]+)/(?P<valid>[\w-]+)/(?P<start_index>[\w-]+)/(?P<length>[\w-]+)/$', 'hdabo.views.list_for_orga', name='list_for_orga'),
63
03698c739b1d #8 : Better url management with datasheet id and context in parameter.
cavaliet
parents: 53
diff changeset
    27
    url(r'^data$', 'hdabo.views.display_datasheet', name='display_datasheet'),
03698c739b1d #8 : Better url management with datasheet id and context in parameter.
cavaliet
parents: 53
diff changeset
    28
    url(r'^data/(?P<ds_id>[\w-]+)$', 'hdabo.views.display_datasheet', name='display_datasheet'),
24
8f84b9bbd22d add wikipedia link edition
ymh <ymh.work@gmail.com>
parents: 21
diff changeset
    29
    url(r'^tagupdown$', 'hdabo.views.tag_up_down'),
8f84b9bbd22d add wikipedia link edition
ymh <ymh.work@gmail.com>
parents: 21
diff changeset
    30
    url(r'^removetagfromlist$', 'hdabo.views.remove_tag_from_list'),
8f84b9bbd22d add wikipedia link edition
ymh <ymh.work@gmail.com>
parents: 21
diff changeset
    31
    url(r'^modifytag$', 'hdabo.views.modify_tag'),
42
861a78f74a37 modify behavior for tag modification on the datasheet
ymh <ymh.work@gmail.com>
parents: 36
diff changeset
    32
    url(r'^modifytagds$', 'hdabo.views.modify_tag_datasheet'),
25
e5f8cb1020c8 add command to reset wikipedia info on a tag
ymh <ymh.work@gmail.com>
parents: 24
diff changeset
    33
    url(r'^resetwpinfo$', 'hdabo.views.reset_wikipedia_info'),
26
699957597026 Add tag feature finished. Full page templates good placed.
cavaliet
parents: 24
diff changeset
    34
    url(r'^addtag$', 'hdabo.views.add_tag'),
31
142d0440c9aa Remove wp link button activated. Some js function gathered.
cavaliet
parents: 27
diff changeset
    35
    url(r'^removewplink$', 'hdabo.views.remove_wp_link'),
32
ffd77b2b939f First step of tag list. Enhance js function for datasheet context or tag list context.
cavaliet
parents: 31
diff changeset
    36
    url(r'^alltags$', 'hdabo.views.all_tags'),
ffd77b2b939f First step of tag list. Enhance js function for datasheet context or tag list context.
cavaliet
parents: 31
diff changeset
    37
    url(r'^alltags/(?P<num_page>[\w-]+)$', 'hdabo.views.all_tags'),
ffd77b2b939f First step of tag list. Enhance js function for datasheet context or tag list context.
cavaliet
parents: 31
diff changeset
    38
    url(r'^alltags/(?P<num_page>[\w-]+)/(?P<nb_by_page>[\w-]+)/$', 'hdabo.views.all_tags'),
51
6b1338c7964c First step of search on tag list.
cavaliet
parents: 46
diff changeset
    39
    url(r'^alltags/(?P<num_page>[\w-]+)/(?P<nb_by_page>[\w-]+)/(?P<searched>.+)/$', 'hdabo.views.all_tags'),
34
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    40
    url(r'^validatedatasheet$', 'hdabo.views.validate_datasheet'),
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    41
    url(r'^validatedatasheet/(?P<ds_id>[\w-]+)$', 'hdabo.views.validate_datasheet'),
26368d096723 Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents: 32
diff changeset
    42
    url(r'^validatedatasheet/(?P<ds_id>[\w-]+)/(?P<valid>[\w-]+)/$', 'hdabo.views.validate_datasheet'),
36
4e8129c9f858 Add alias update feature.
cavaliet
parents: 34
diff changeset
    43
    url(r'^updatetagalias$', 'hdabo.views.update_tag_alias'),
44
244d805b4921 Reorder taggedsheet by drag and drop. Remove wikipedia_activated for a tag. TagCategory chosen by closed list.
cavaliet
parents: 43
diff changeset
    44
    url(r'^updatetagcategory$', 'hdabo.views.update_tag_category'),
72
ba8ebabbaece -correct css and display
ymh <ymh.work@gmail.com>
parents: 63
diff changeset
    45
    url(r'^ordertagsdatasheet$', 'hdabo.views.reorder_tag_datasheet'),
0
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
)