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