| author | ymh <ymh.work@gmail.com> |
| Wed, 20 Apr 2011 00:55:58 +0200 | |
| changeset 63 | 93325a5d61f0 |
| parent 59 | a06fab661ac4 |
| child 112 | 9886ab183b09 |
| permissions | -rw-r--r-- |
| 63 | 1 |
from django.conf.urls.defaults import patterns, include, url |
| 0 | 2 |
from django.contrib import admin |
| 63 | 3 |
from ldt.auth.views import login as pf_login |
| 22 | 4 |
from ldt.text import VERSION_STR |
| 63 | 5 |
|
6 |
#from django.conf import settings |
|
| 0 | 7 |
|
8 |
# Uncomment the next two lines to enable the admin: |
|
9 |
admin.autodiscover() |
|
10 |
||
11 |
urlpatterns = patterns('', |
|
12 |
# Example: |
|
13 |
||
14 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
15 |
# to INSTALLED_APPS to enable admin documentation: |
|
16 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
17 |
||
18 |
# Uncomment the next line to enable the admin: |
|
19 |
(r'^admin/', include(admin.site.urls)), |
|
20 |
(r'^i18n/', include('django.conf.urls.i18n')), |
|
21 |
||
22 |
(r'^ldt/', include('ldt.ldt_utils.urls')), |
|
23 |
(r'^user/', include('ldt.user.urls')), |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
24 |
(r'^api/', include('ldt.api.urls')), |
| 22 | 25 |
(r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')), |
| 0 | 26 |
|
| 28 | 27 |
(r'^auth_accounts/', include('registration.backends.simple.urls')), |
28 |
||
| 56 | 29 |
#(r'^accounts/', include('socialauth.urls')), |
30 |
(r'^accounts/', include('social_auth.urls')), |
|
|
59
a06fab661ac4
modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents:
56
diff
changeset
|
31 |
url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'), |
| 22 | 32 |
(r'^oauth/', include('oauth_provider.urls')), |
| 56 | 33 |
|
34 |
#(r'^$', 'socialauth.views.signin_complete'), |
|
35 |
#(r'^$', 'social_auth.views.complete'), |
|
| 0 | 36 |
|
37 |
(r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}), |
|
| 28 | 38 |
#(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), |
| 0 | 39 |
) |