web/ldtplatform/urls.py
author ymh <ymh.work@gmail.com>
Sat, 15 Oct 2011 23:41:36 +0200
changeset 6 6befc470b1e6
parent 4 238f3cd543f2
permissions -rwxr-xr-x
correct path to make it work, back to normal
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     1
from django.conf.urls.defaults import patterns, include, url
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     2
from django.contrib import admin
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     3
from ldt.auth.views import login as pf_login
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     4
from ldt.text import VERSION_STR
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     5
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     6
#from django.conf import settings
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     7
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     8
# Uncomment the next two lines to enable the admin:
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
     9
admin.autodiscover()
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    10
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    11
js_info_dict = {  
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    12
    'packages': ('django.contrib.admin',), 
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    13
}
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    14
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    15
urlpatterns = patterns('',
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    16
    # Example:
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    17
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    18
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    19
    # to INSTALLED_APPS to enable admin documentation:
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    20
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    21
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    22
    # Uncomment the next line to enable the admin:
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    23
    (r'^admin/', include(admin.site.urls)),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    24
    (r'^i18n/', include('django.conf.urls.i18n')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    25
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    26
    (r'^ldt/', include('ldt.ldt_utils.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    27
    (r'^user/', include('ldt.user.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    28
    (r'^api/', include('ldt.api.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    29
    (r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    30
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    31
    (r'^auth_accounts/', include('registration.backends.simple.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    32
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    33
    #(r'^accounts/', include('socialauth.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    34
    (r'^accounts/', include('social_auth.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    35
    url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    36
    (r'^oauth/', include('oauth_provider.urls')),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    37
    
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    38
    #(r'^$', 'socialauth.views.signin_complete'),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    39
    #(r'^$', 'social_auth.views.complete'),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    40
    
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    41
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    42
    #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    43
    
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    44
    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), 
40d6b5e3dcd7 First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff changeset
    45
)