| author | grandjoncl |
| Thu, 18 Oct 2012 10:41:49 +0200 | |
| changeset 859 | cc6b53f3577d |
| parent 162 | 897a49403451 |
| child 867 | 534c13786e89 |
| permissions | -rw-r--r-- |
| 859 | 1 |
from django.conf.urls.defaults import patterns, include, url, handler500 |
| 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 |
||
| 859 | 11 |
handler500 = 'ldt.ldt_utils.views.error_views.error500' |
12 |
||
13 |
||
| 162 | 14 |
js_info_dict = { |
15 |
'packages': ('django.contrib.admin',), |
|
16 |
} |
|
17 |
||
| 0 | 18 |
urlpatterns = patterns('', |
19 |
# Example: |
|
20 |
||
21 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
22 |
# to INSTALLED_APPS to enable admin documentation: |
|
23 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
24 |
||
25 |
# Uncomment the next line to enable the admin: |
|
26 |
(r'^admin/', include(admin.site.urls)), |
|
27 |
(r'^i18n/', include('django.conf.urls.i18n')), |
|
28 |
||
29 |
(r'^ldt/', include('ldt.ldt_utils.urls')), |
|
30 |
(r'^user/', include('ldt.user.urls')), |
|
|
13
97ab7b3191cf
add api to update project, uses psiton
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
31 |
(r'^api/', include('ldt.api.urls')), |
| 22 | 32 |
(r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')), |
| 0 | 33 |
|
| 28 | 34 |
(r'^auth_accounts/', include('registration.backends.simple.urls')), |
35 |
||
| 56 | 36 |
#(r'^accounts/', include('socialauth.urls')), |
37 |
(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
|
38 |
url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'), |
| 22 | 39 |
(r'^oauth/', include('oauth_provider.urls')), |
| 56 | 40 |
|
41 |
#(r'^$', 'socialauth.views.signin_complete'), |
|
42 |
#(r'^$', 'social_auth.views.complete'), |
|
| 0 | 43 |
|
44 |
(r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}), |
|
| 162 | 45 |
#(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), |
46 |
||
47 |
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), |
|
| 0 | 48 |
) |