src/jocondelab/urls.py
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--
add qualifier on the wikipedia link
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
from django.conf.urls import patterns, include, url
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
from django.contrib.auth.decorators import login_required
5
580fd386c4b9 Improve design, add context
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     8
from jocondelab.views import TermListTableView
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
15
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    10
js_info_dict = {
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    11
    'packages': ('core', 'jocondelab'),
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    12
}
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    13
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
admin.autodiscover()
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
urlpatterns = patterns('',    
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    url(r'^auth/', include(auth_url)),    
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name='joconde_logout'),
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    url(r'^admin/', include(admin.site.urls)),
15
8440c36660e5 add translation,
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    20
    url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    url(r'^$', login_required(TermListView.as_view()), name='home'),
5
580fd386c4b9 Improve design, add context
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    22
    url(r'^bo/term/list/table$', login_required(TermListTableView.as_view()), name='term_list_table'),
0
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    url(r'^bo/term/(?P<term_id>\d+)/$', login_required(TermEditView.as_view()), name='term'),
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    url(r'^bo/term/modify-wp/$', login_required(TermModifyWpLink.as_view()), name='modify_wp_link'),
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    url(r'^bo/term/validate/$', login_required(TermValidate.as_view()), name='validate_term'),    
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
)
4095911a7830 Jocondelab first commit before design
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30