| author | cavaliet |
| Tue, 08 Jul 2014 12:03:06 +0200 | |
| changeset 289 | eb479baeb2bf |
| parent 279 | 177b508612f4 |
| child 292 | f6742c41d7a3 |
| permissions | -rw-r--r-- |
|
266
825ff4d6a8ac
reorganise folders and update venv dependancies (django, etc...)
cavaliet
parents:
89
diff
changeset
|
1 |
from django.conf.urls import patterns, include, url |
| 0 | 2 |
from django.contrib import admin |
| 53 | 3 |
from django.contrib.auth import urls as auth_url |
| 277 | 4 |
from django.contrib.auth.decorators import login_required |
5 |
from .views import AddOrUpdateFolder, Folders, SearchDatasheet, DeleteFolder |
|
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
277
diff
changeset
|
6 |
from hdalab import urls as hdalab_url |
| 53 | 7 |
|
| 0 | 8 |
|
9 |
# Uncomment the next two lines to enable the admin: |
|
10 |
admin.autodiscover() |
|
11 |
||
12 |
urlpatterns = patterns('', |
|
13 |
# Examples: |
|
14 |
# url(r'^$', 'hdabo.views.home', name='home'), |
|
15 |
# url(r'^hdabo/', include('hdabo.foo.urls')), |
|
16 |
||
17 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
18 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
19 |
||
20 |
# Uncomment the next line to enable the admin: |
|
| 53 | 21 |
url(r'^accounts/', include(auth_url)), |
22 |
url(r'^logout/', 'django.contrib.auth.views.logout_then_login'), |
|
| 21 | 23 |
url(r'^admin/', include(admin.site.urls)), |
24 |
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
|
25 |
url(r'^$', 'hdabo.views.home', name='home'), |
| 275 | 26 |
url(r'^list/$', 'hdabo.views.orga_list', name='orga_list'), |
|
34
26368d096723
Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents:
32
diff
changeset
|
27 |
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
|
28 |
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
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
url(r'^data/(?P<ds_id>[\w-]+)$', 'hdabo.views.display_datasheet', name='display_datasheet'), |
| 24 | 33 |
url(r'^tagupdown$', 'hdabo.views.tag_up_down'), |
34 |
url(r'^removetagfromlist$', 'hdabo.views.remove_tag_from_list'), |
|
35 |
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
|
36 |
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
|
37 |
url(r'^resetwpinfo$', 'hdabo.views.reset_wikipedia_info'), |
|
26
699957597026
Add tag feature finished. Full page templates good placed.
cavaliet
parents:
24
diff
changeset
|
38 |
url(r'^addtag$', 'hdabo.views.add_tag'), |
|
31
142d0440c9aa
Remove wp link button activated. Some js function gathered.
cavaliet
parents:
27
diff
changeset
|
39 |
url(r'^removewplink$', 'hdabo.views.remove_wp_link'), |
| 89 | 40 |
url(r'^alltags/?$', 'hdabo.views.all_tags'), |
41 |
url(r'^alltags/(?P<num_page>[\w-]+)/?$', 'hdabo.views.all_tags'), |
|
42 |
url(r'^alltags/(?P<num_page>[\w-]+)/(?P<nb_by_page>[\w-]+)/?$', 'hdabo.views.all_tags'), |
|
43 |
url(r'^alltags/(?P<num_page>[\w-]+)/(?P<nb_by_page>[\w-]+)/(?P<sort>[+-][\w]+)/?$', 'hdabo.views.all_tags'), |
|
44 |
url(r'^alltags/(?P<num_page>[\w-]+)/(?P<nb_by_page>[\w-]+)/(?P<sort>[+-][\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
|
45 |
url(r'^validatedatasheet$', 'hdabo.views.validate_datasheet'), |
|
26368d096723
Datasheet validation, better repartition of js function, hand cursor on buttons.
cavaliet
parents:
32
diff
changeset
|
46 |
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
|
47 |
url(r'^validatedatasheet/(?P<ds_id>[\w-]+)/(?P<valid>[\w-]+)/$', 'hdabo.views.validate_datasheet'), |
| 36 | 48 |
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
|
49 |
url(r'^updatetagcategory$', 'hdabo.views.update_tag_category'), |
| 72 | 50 |
url(r'^ordertagsdatasheet$', 'hdabo.views.reorder_tag_datasheet'), |
| 277 | 51 |
url(r'^folders/$', login_required(Folders.as_view()), name='folders'), |
52 |
url(r'^folder/$', login_required(AddOrUpdateFolder.as_view()), name='add_or_update_folder'), |
|
53 |
url(r'^folder/(?P<folder_pk>[\w-]+)$', login_required(AddOrUpdateFolder.as_view()), name='add_or_update_folder'), |
|
54 |
url(r'^searchajax/$', login_required(SearchDatasheet()), name='searchajax'), |
|
55 |
url(r'^deletefolder/(?P<folder_pk>[\w-]+)$', login_required(DeleteFolder.as_view()), name='delete_folder'), |
|
|
279
177b508612f4
add, configure and correct hdalab to installed apps
cavaliet
parents:
277
diff
changeset
|
56 |
url(r'^hdalab/', include(hdalab_url)), |
| 0 | 57 |
) |