web/ldtplatform/urls.py
author cavaliet
Tue, 22 Mar 2011 12:35:29 +0100
changeset 46 ba02faf089df
parent 22 03d02cf0bea7
child 28 5cba2808cde0
permissions -rw-r--r--
Update media adding, to allow youtube import, and display the thumbnail when we paste the youtube url.

from django.conf.urls.defaults import patterns, include, handler500, handler404
from django.contrib import admin
from ldt.text import VERSION_STR


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

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'^accounts/', include('registration.backends.simple.urls')),
    (r'^oauth/', include('oauth_provider.urls')),
    
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
)