web/ldtplatform/urls.py
changeset 162 897a49403451
parent 112 9886ab183b09
child 859 cc6b53f3577d
equal deleted inserted replaced
161:ec99af8284f5 162:897a49403451
     5 
     5 
     6 #from django.conf import settings
     6 #from django.conf import settings
     7 
     7 
     8 # Uncomment the next two lines to enable the admin:
     8 # Uncomment the next two lines to enable the admin:
     9 admin.autodiscover()
     9 admin.autodiscover()
       
    10 
       
    11 js_info_dict = {  
       
    12     'packages': ('django.contrib.admin',), 
       
    13 }
    10 
    14 
    11 urlpatterns = patterns('',
    15 urlpatterns = patterns('',
    12     # Example:
    16     # Example:
    13 
    17 
    14     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    18     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    33     
    37     
    34     #(r'^$', 'socialauth.views.signin_complete'),
    38     #(r'^$', 'socialauth.views.signin_complete'),
    35     #(r'^$', 'social_auth.views.complete'),
    39     #(r'^$', 'social_auth.views.complete'),
    36     
    40     
    37     (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
    41     (r'^/?$', 'django.views.generic.simple.redirect_to', {'url': 'ldt'}),
    38     #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), 
    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), 
    39 )
    45 )