web/ldtplatform/urls.py
author wakimd
Thu, 17 Feb 2011 18:43:37 +0100
branchsocialauth
changeset 28 5cba2808cde0
parent 22 03d02cf0bea7
child 56 125fc6df230d
permissions -rw-r--r--
added socialauth
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
28
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
     4
from django.conf import settings
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
# Uncomment the next two lines to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
admin.autodiscover()
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
urlpatterns = patterns('',
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    # Example:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    # to INSTALLED_APPS to enable admin documentation:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    # Uncomment the next line to enable the admin:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    (r'^admin/', include(admin.site.urls)),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    (r'^i18n/', include('django.conf.urls.i18n')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    (r'^ldt/', include('ldt.ldt_utils.urls')),
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    (r'^user/', include('ldt.user.urls')),
13
97ab7b3191cf add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents: 2
diff changeset
    23
    (r'^api/', include('ldt.api.urls')),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    24
    (r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
28
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    26
    (r'^auth_accounts/', include('registration.backends.simple.urls')),
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    27
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    28
    (r'^accounts/', include('socialauth.urls')),
22
03d02cf0bea7 Added text API, test Clients and Testcases
wakimd
parents: 13
diff changeset
    29
    (r'^oauth/', include('oauth_provider.urls')),
28
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    30
    (r'^$', 'socialauth.views.signin_complete'),
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
    
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
    (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
28
5cba2808cde0 added socialauth
wakimd
parents: 22
diff changeset
    33
    #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), 
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
)