author | durandn |
Fri, 07 Aug 2015 12:23:58 +0200 | |
changeset 74 | daa7aa274e3f |
parent 23 | 16303a95fdb8 |
child 83 | 451521e9f742 |
permissions | -rw-r--r-- |
3 | 1 |
"""remieplt URL Configuration |
2 |
||
3 |
The `urlpatterns` list routes URLs to views. For more information please see: |
|
4 |
https://docs.djangoproject.com/en/dev/topics/http/urls/ |
|
5 |
Examples: |
|
6 |
Function views |
|
7 |
1. Add an import: from my_app import views |
|
8 |
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') |
|
9 |
Class-based views |
|
10 |
1. Add an import: from other_app.views import Home |
|
11 |
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') |
|
12 |
Including another URLconf |
|
13 |
1. Add an import: from blog import urls as blog_urls |
|
14 |
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) |
|
15 |
""" |
|
16 |
from ldt.auth.views import login as pf_login |
|
17 |
from ldt.text import VERSION_STR |
|
18 |
||
19 |
from django.conf import settings |
|
20 |
from django.conf.urls import include, url |
|
21 |
from django.conf.urls.static import static |
|
22 |
from django.contrib import admin |
|
23 |
from django.contrib.staticfiles.urls import staticfiles_urlpatterns |
|
24 |
from django.views.generic import RedirectView |
|
25 |
||
74
daa7aa274e3f
Added options to hide headers in AnnotationsList and LatestAnnotation widgets + streamlined remie urls and templates for consistency
durandn
parents:
23
diff
changeset
|
26 |
from remie.views import RemieSegmentsSingleView, RemieSegmentsGroupView, RemieMarkersView, RemieTeacherView, RemieIframeTesterView |
3 | 27 |
|
28 |
js_info_dict = { |
|
29 |
'packages': ('django.contrib.admin',), |
|
30 |
} |
|
31 |
||
32 |
urlpatterns = [ |
|
33 |
url(r'^admin/', include(admin.site.urls)), |
|
34 |
url(r'^i18n/', include('django.conf.urls.i18n')), |
|
35 |
||
36 |
url(r'^ldt/', include('ldt.ldt_utils.urls')), |
|
37 |
url(r'^user/', include('ldt.user.urls')), |
|
38 |
url(r'^api/', include('ldt.api.urls')), |
|
39 |
url(r'^api/' + VERSION_STR + '/text/', include('ldt.text.urls')), |
|
40 |
||
41 |
url(r'^auth_accounts/', include('registration.backends.simple.urls')), |
|
42 |
||
43 |
url(r'^accounts/', include('social.apps.django_app.urls', namespace='social')), |
|
44 |
url(r'^accounts/login/$',pf_login,{'template_name': 'registration/login.html'},name='auth_login'), |
|
9
3166a35f5f0d
Added CAS Auth middleware and CAS Login urls to remie platform + removed authserver/homestead/.vagrant from repo
durandn
parents:
3
diff
changeset
|
45 |
url(r'^accounts/cas/login/$', 'django_cas_ng.views.login'), |
3166a35f5f0d
Added CAS Auth middleware and CAS Login urls to remie platform + removed authserver/homestead/.vagrant from repo
durandn
parents:
3
diff
changeset
|
46 |
url(r'^accounts/cas/logout/$', 'django_cas_ng.views.logout'), |
3 | 47 |
url(r'^oauth/', include('oauth_provider.urls')), |
23 | 48 |
|
10
7e83c61b1f87
Setting up testing environnement for remie iframe views
durandn
parents:
9
diff
changeset
|
49 |
url(r'^remie/iframetester$', RemieIframeTesterView.as_view(), name="remie_iframe_tester"), |
23 | 50 |
|
74
daa7aa274e3f
Added options to hide headers in AnnotationsList and LatestAnnotation widgets + streamlined remie urls and templates for consistency
durandn
parents:
23
diff
changeset
|
51 |
url(r'^remie/workunit/segments_group$', RemieSegmentsGroupView.as_view(), name="remie_segments_group"), |
daa7aa274e3f
Added options to hide headers in AnnotationsList and LatestAnnotation widgets + streamlined remie urls and templates for consistency
durandn
parents:
23
diff
changeset
|
52 |
url(r'^remie/workunit/segments_single$', RemieSegmentsSingleView.as_view(), name="remie_segments_single"), |
daa7aa274e3f
Added options to hide headers in AnnotationsList and LatestAnnotation widgets + streamlined remie urls and templates for consistency
durandn
parents:
23
diff
changeset
|
53 |
url(r'^remie/workunit/markers', RemieMarkersView.as_view(), name="remie_markers"), |
daa7aa274e3f
Added options to hide headers in AnnotationsList and LatestAnnotation widgets + streamlined remie urls and templates for consistency
durandn
parents:
23
diff
changeset
|
54 |
url(r'^remie/workunit/teacher', RemieTeacherView.as_view(), name="remie_teacher"), |
23 | 55 |
|
10
7e83c61b1f87
Setting up testing environnement for remie iframe views
durandn
parents:
9
diff
changeset
|
56 |
url(r'^/?$', RedirectView.as_view(url='ldt'), name="remie_iframe_container"), |
3 | 57 |
|
58 |
url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), |
|
59 |
||
23 | 60 |
url(r'^short/(?P<base62_id>[A-Za-z0-9]+)$', 'shortener.views.follow', name="shortener_follow") |
61 |
||
3 | 62 |
] |
63 |
||
64 |
urlpatterns += staticfiles_urlpatterns() |
|
65 |
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |