web/leezam/urls.py
author wakimd
Wed, 22 Dec 2010 12:01:05 +0100
changeset 25 c8dfd7ea87e5
parent 21 1a061f244254
permissions -rw-r--r--
Corrections on merge

from django.conf.urls.defaults import patterns ,include, url, 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:
    # (r'^leezam/', include('leezam.foo.urls')),

    # 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'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),
    (r'^user/', include('ldt.user.urls')),

    (r'^accounts/', include('registration.backends.simple.urls')),
    (r'^oauth/', include('oauth_provider.urls')),
    
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'api/'}),
)