web/ldtplatform/urls.py
author grandjoncl
Thu, 11 Oct 2012 16:39:05 +0200
changeset 842 ca38abd140b3
parent 162 897a49403451
child 859 cc6b53f3577d
permissions -rw-r--r--
Corrections of the code for the embed popup. Functions are now in the embed_popup.js With chrome the player used to play the video even when it wasn't supposed to be displayed and kept playing when we hid the player. When we changed between div and iframe the player started even when it was suppose to be hidden. It's now solved.

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from ldt.auth.views import login as pf_login
from ldt.text import VERSION_STR

#from django.conf import settings

# Uncomment the next two lines to enable the admin:
admin.autodiscover()

js_info_dict = {  
    'packages': ('django.contrib.admin',), 
}

urlpatterns = patterns('',
    # Example:

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^i18n/', include('django.conf.urls.i18n')),

    (r'^ldt/', include('ldt.ldt_utils.urls')),
    (r'^user/', include('ldt.user.urls')),
    (r'^api/', include('ldt.api.urls')),
    (r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),

    (r'^auth_accounts/', include('registration.backends.simple.urls')),

    #(r'^accounts/', include('socialauth.urls')),
    (r'^accounts/', include('social_auth.urls')),
    url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'),
    (r'^oauth/', include('oauth_provider.urls')),
    
    #(r'^$', 'socialauth.views.signin_complete'),
    #(r'^$', 'social_auth.views.complete'),
    
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
    #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    
    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), 
)