web/ldtplatform/urls.py
author wakimd
Fri, 11 Feb 2011 11:51:35 +0100
changeset 22 03d02cf0bea7
parent 13 97ab7b3191cf
child 28 5cba2808cde0
permissions -rw-r--r--
Added text API, test Clients and Testcases
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
     1
from django.conf.urls.defaults import patterns, include, handler500, handler404
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.contrib import admin
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
     3
from ldt.text import VERSION_STR
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
# Uncomment the next two lines to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
admin.autodiscover()
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
urlpatterns = patterns('',
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    # Example:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    # to INSTALLED_APPS to enable admin documentation:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
    # Uncomment the next line to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    (r'^admin/', include(admin.site.urls)),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    (r'^i18n/', include('django.conf.urls.i18n')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    (r'^ldt/', include('ldt.ldt_utils.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    (r'^user/', include('ldt.user.urls')),
13
97ab7b3191cf add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    22
    (r'^api/', include('ldt.api.urls')),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    23
    (r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    (r'^accounts/', include('registration.backends.simple.urls')),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    26
    (r'^oauth/', include('oauth_provider.urls')),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
    
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
)