# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
- (r'^admin/django/', include(admin.site.urls)),
-
- # Telemeta
- (r'^', include('telemeta.urls')),
+ url(r'^admin/django/', include(admin.site.urls)),
# TeleForma
(r'^', include('teleforma.urls')),
- # Postman
- (r'^messages/', include('postman.urls')),
-
# Languages
(r'^i18n/', include('django.conf.urls.i18n')),
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
urlpatterns = patterns('',
+ # Telemeta
+ url(r'^', include('telemeta.urls')),
+
url(r'^desk/courses/$', CoursesView.as_view(), name="teleforma-courses"),
url(r'^desk/courses/(?P<pk>.*)$', CourseView.as_view(), name="teleforma-course-detail"),
url(r'^desk/medias/(?P<pk>.*)$', MediaView.as_view(), name="teleforma-media-detail"),
url(r'^desk/documents/(?P<pk>.*)/download/', document_download, name="teleforma-document-download"),
url(r'^desk/documents/(?P<pk>.*)/view/', document_view, name="teleforma-document-view"),
+ # Postman
+ url(r'^messages/', include('postman.urls')),
+
+
# CSS+Images (FIXME: for developement only)
url(r'^teleforma/css/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': htdocs_forma+'/css'},
# JSON RPC
url(r'json/$', jsonrpc_site.dispatch, name='jsonrpc_mountpoint'),
+ url(r'^private_files/', include('private_files.urls')),
+
+
)