Commit 03fcf407103da82e62a7b93b33c0d68ec7a4c823
1 parent
9910aca8
Exists in
master
and in
5 other branches
Including links urls in courses [Issue: #126]
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
courses/urls.py
1 | from django.conf.urls import url, include | 1 | from django.conf.urls import url, include |
2 | 2 | ||
3 | from . import views | 3 | from . import views |
4 | - | ||
5 | urlpatterns = [ | 4 | urlpatterns = [ |
6 | url(r'^$', views.IndexView.as_view(), name='manage'), | 5 | url(r'^$', views.IndexView.as_view(), name='manage'), |
7 | url(r'^create/$', views.CreateCourseView.as_view(), name='create'), | 6 | url(r'^create/$', views.CreateCourseView.as_view(), name='create'), |
@@ -22,8 +21,7 @@ urlpatterns = [ | @@ -22,8 +21,7 @@ urlpatterns = [ | ||
22 | url(r'^topics/update/(?P<slug>[\w_-]+)/$', views.UpdateTopicView.as_view(), name='update_topic'), | 21 | url(r'^topics/update/(?P<slug>[\w_-]+)/$', views.UpdateTopicView.as_view(), name='update_topic'), |
23 | url(r'^topics/(?P<slug>[\w_-]+)/$', views.TopicsView.as_view(), name='view_topic'), | 22 | url(r'^topics/(?P<slug>[\w_-]+)/$', views.TopicsView.as_view(), name='view_topic'), |
24 | url(r'^subjects/categories$',views.IndexSubjectCategoryView.as_view(), name='subject_category_index'), | 23 | url(r'^subjects/categories$',views.IndexSubjectCategoryView.as_view(), name='subject_category_index'), |
25 | - | ||
26 | - | 24 | + url(r'^topics/update/(?P<slug>[\w_-]+)/createlink/', include('links.urls',namespace='links')), |
27 | url(r'^forum/', include('forum.urls', namespace = 'forum')), | 25 | url(r'^forum/', include('forum.urls', namespace = 'forum')), |
28 | url(r'^poll/', include('poll.urls', namespace = 'poll')), | 26 | url(r'^poll/', include('poll.urls', namespace = 'poll')), |
29 | 27 |