web/ldtplatform/urls.py
author rougeronj
Wed, 19 Sep 2012 18:16:19 +0200
changeset 789 d92d032a6d78
parent 162 897a49403451
child 859 cc6b53f3577d
permissions -rw-r--r--
Commit Julien: Champ de recherche de users et groups dans l'ajout de content, amélioré pour que le mot "recherche" disparaisse au moment ou l'on clique sur le champ. Meme modification dans la page "groups". Permettre à un user qui a le droit de creer un group, d'en creer un (le label de la permission est "auth.add_group").
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
63
93325a5d61f0 organize format and import
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
     1
from django.conf.urls.defaults import patterns, include, url
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.contrib import admin
63
93325a5d61f0 organize format and import
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
     3
from ldt.auth.views import login as pf_login
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
     4
from ldt.text import VERSION_STR
63
93325a5d61f0 organize format and import
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
     5
93325a5d61f0 organize format and import
ymh <ymh.work@gmail.com>
parents: 59
diff changeset
     6
#from django.conf import settings
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
# Uncomment the next two lines to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
admin.autodiscover()
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
162
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    11
js_info_dict = {  
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    12
    'packages': ('django.contrib.admin',), 
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    13
}
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    14
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
urlpatterns = patterns('',
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
    # Example:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    # to INSTALLED_APPS to enable admin documentation:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    # Uncomment the next line to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    (r'^admin/', include(admin.site.urls)),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    (r'^i18n/', include('django.conf.urls.i18n')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
    (r'^ldt/', include('ldt.ldt_utils.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
    (r'^user/', include('ldt.user.urls')),
13
97ab7b3191cf add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    28
    (r'^api/', include('ldt.api.urls')),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    29
    (r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
28
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    31
    (r'^auth_accounts/', include('registration.backends.simple.urls')),
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    32
56
125fc6df230d fusionner
cavaliet
parents: 28
diff changeset
    33
    #(r'^accounts/', include('socialauth.urls')),
125fc6df230d fusionner
cavaliet
parents: 28
diff changeset
    34
    (r'^accounts/', include('social_auth.urls')),
59
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 56
diff changeset
    35
    url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    36
    (r'^oauth/', include('oauth_provider.urls')),
56
125fc6df230d fusionner
cavaliet
parents: 28
diff changeset
    37
    
125fc6df230d fusionner
cavaliet
parents: 28
diff changeset
    38
    #(r'^$', 'socialauth.views.signin_complete'),
125fc6df230d fusionner
cavaliet
parents: 28
diff changeset
    39
    #(r'^$', 'social_auth.views.complete'),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
    
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
162
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    42
    #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    43
    
897a49403451 Added translations
verrierj
parents: 112
diff changeset
    44
    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), 
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
)