|
16
|
1 |
from django.conf.urls import patterns, include, url |
|
|
2 |
from django.contrib import admin |
|
|
3 |
from django.views.generic import TemplateView |
|
|
4 |
from ldt.auth.views import login as pf_login |
|
|
5 |
|
|
|
6 |
|
|
|
7 |
# Uncomment the next two lines to enable the admin: |
|
|
8 |
|
|
|
9 |
admin.autodiscover() |
|
|
10 |
|
|
|
11 |
js_info_dict = { |
|
|
12 |
'packages': ('django.contrib.admin',), |
|
|
13 |
} |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
urlpatterns = patterns('', |
|
|
17 |
# Examples: |
|
|
18 |
# url(r'^$', 'tralalere.views.home', name='home'), |
|
|
19 |
# url(r'^tralalere/', include('tralalere.foo.urls')), |
|
|
20 |
|
|
|
21 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
|
22 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
|
23 |
|
|
|
24 |
# Uncomment the next line to enable the admin: |
|
|
25 |
url(r'^admin/', include(admin.site.urls)), |
|
|
26 |
|
|
|
27 |
(r'^i18n/', include('django.conf.urls.i18n')), |
|
|
28 |
|
|
|
29 |
(r'^ldt/', include('ldt.ldt_utils.urls')), |
|
|
30 |
(r'^user/', include('ldt.user.urls')), |
|
|
31 |
(r'^api/', include('ldt.api.urls')), |
|
|
32 |
|
|
|
33 |
(r'^auth_accounts/', include('registration.backends.simple.urls')), |
|
|
34 |
|
|
|
35 |
(r'^accounts/', include('social_auth.urls')), |
|
|
36 |
url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'), |
|
|
37 |
(r'^oauth/', include('oauth_provider.urls')), |
|
|
38 |
url(r'^home$', 'tralalere.views.home', name='home'), |
|
|
39 |
(r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'home'}), |
|
|
40 |
#(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), |
|
|
41 |
|
|
|
42 |
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), |
|
|
43 |
) |