| author | ymh <ymh.work@gmail.com> |
| Tue, 25 Jun 2013 15:34:18 +0200 | |
| changeset 35 | 859862939996 |
| parent 26 | 758b9289aa9a |
| child 62 | 33fd91a414cc |
| permissions | -rw-r--r-- |
|
26
758b9289aa9a
add check box to indicate that a wk page should be created
ymh <ymh.work@gmail.com>
parents:
15
diff
changeset
|
1 |
from .views import (TermListView, TermEditView, TermModifyWpLink, |
|
35
859862939996
add qualifier on the wikipedia link
ymh <ymh.work@gmail.com>
parents:
26
diff
changeset
|
2 |
TermRemoveWpLink, TermValidate, TermWikipediaEdition, |
|
859862939996
add qualifier on the wikipedia link
ymh <ymh.work@gmail.com>
parents:
26
diff
changeset
|
3 |
TermLinkSemanticLevelEdition) |
| 0 | 4 |
from django.conf.urls import patterns, include, url |
5 |
from django.contrib import admin |
|
|
26
758b9289aa9a
add check box to indicate that a wk page should be created
ymh <ymh.work@gmail.com>
parents:
15
diff
changeset
|
6 |
from django.contrib.auth import urls as auth_url |
| 0 | 7 |
from django.contrib.auth.decorators import login_required |
| 5 | 8 |
from jocondelab.views import TermListTableView |
| 0 | 9 |
|
| 15 | 10 |
js_info_dict = { |
11 |
'packages': ('core', 'jocondelab'), |
|
12 |
} |
|
13 |
||
| 0 | 14 |
admin.autodiscover() |
15 |
||
16 |
urlpatterns = patterns('', |
|
17 |
url(r'^auth/', include(auth_url)), |
|
18 |
url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name='joconde_logout'), |
|
19 |
url(r'^admin/', include(admin.site.urls)), |
|
| 15 | 20 |
url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), |
| 0 | 21 |
url(r'^$', login_required(TermListView.as_view()), name='home'), |
| 5 | 22 |
url(r'^bo/term/list/table$', login_required(TermListTableView.as_view()), name='term_list_table'), |
| 0 | 23 |
url(r'^bo/term/(?P<term_id>\d+)/$', login_required(TermEditView.as_view()), name='term'), |
24 |
url(r'^bo/term/modify-wp/$', login_required(TermModifyWpLink.as_view()), name='modify_wp_link'), |
|
25 |
url(r'^bo/term/remove-wp/$', login_required(TermRemoveWpLink.as_view()), name='remove_wp_link'), |
|
|
26
758b9289aa9a
add check box to indicate that a wk page should be created
ymh <ymh.work@gmail.com>
parents:
15
diff
changeset
|
26 |
url(r'^bo/term/edition-wp/$', login_required(TermWikipediaEdition.as_view()), name='edition_wp_link'), |
|
35
859862939996
add qualifier on the wikipedia link
ymh <ymh.work@gmail.com>
parents:
26
diff
changeset
|
27 |
url(r'^bo/term/edition-link-level/$', login_required(TermLinkSemanticLevelEdition.as_view()), name='editon_link_semantic_level'), |
| 0 | 28 |
url(r'^bo/term/validate/$', login_required(TermValidate.as_view()), name='validate_term'), |
29 |
) |
|
30 |