Commit d2d2e37ee9d2d92e34df31b925e2c4e126f4ec33
1 parent
5964b15b
Exists in
master
and in
5 other branches
Removing links urls of courses urls.py, leaving just the include one [Issue:#126]
Showing
1 changed file
with
1 additions
and
5 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 | -from links import views as linkviews | ||
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,9 +21,6 @@ urlpatterns = [ | @@ -22,9 +21,6 @@ urlpatterns = [ | ||
22 | url(r'^subjects/subscribe/(?P<slug>[\w_-]+)/$', views.subscribe_subject, name='subscribe_subject'), | 21 | url(r'^subjects/subscribe/(?P<slug>[\w_-]+)/$', views.subscribe_subject, name='subscribe_subject'), |
23 | url(r'^topics/create/(?P<slug>[\w_-]+)/$', views.CreateTopicView.as_view(), name='create_topic'), | 22 | url(r'^topics/create/(?P<slug>[\w_-]+)/$', views.CreateTopicView.as_view(), name='create_topic'), |
24 | url(r'^topics/update/(?P<slug>[\w_-]+)/$', views.UpdateTopicView.as_view(), name='update_topic'), | 23 | url(r'^topics/update/(?P<slug>[\w_-]+)/$', views.UpdateTopicView.as_view(), name='update_topic'), |
25 | - url(r'^topics/createlink/$', linkviews.CreateLink.as_view(),name = 'create_link'), | ||
26 | - url(r'^topics/deletelink/(?P<linkname>[\w_-]+)/$', linkviews.deleteLink,name = 'delete_link'), | ||
27 | - url(r'^topics/updatelink/(?P<linkname>[\w_-]+)/$', linkviews.UpdateLink.as_view(),name = 'update_link'), | ||
28 | url(r'^topics/(?P<slug>[\w_-]+)/$', views.TopicsView.as_view(), name='view_topic'), | 24 | url(r'^topics/(?P<slug>[\w_-]+)/$', views.TopicsView.as_view(), name='view_topic'), |
29 | url(r'^subjects/categories$',views.IndexSubjectCategoryView.as_view(), name='subject_category_index'), | 25 | url(r'^subjects/categories$',views.IndexSubjectCategoryView.as_view(), name='subject_category_index'), |
30 | url(r'^forum/', include('forum.urls', namespace = 'forum')), | 26 | url(r'^forum/', include('forum.urls', namespace = 'forum')), |
@@ -33,4 +29,4 @@ urlpatterns = [ | @@ -33,4 +29,4 @@ urlpatterns = [ | ||
33 | url(r'^files/', include('files.urls', namespace = 'file')), | 29 | url(r'^files/', include('files.urls', namespace = 'file')), |
34 | url(r'^upload-material/$', views.UploadMaterialView.as_view(), name='upload_material'), | 30 | url(r'^upload-material/$', views.UploadMaterialView.as_view(), name='upload_material'), |
35 | url(r'^links/',include('links.urls',namespace = 'links')), | 31 | url(r'^links/',include('links.urls',namespace = 'links')), |
36 | -] | ||
37 | \ No newline at end of file | 32 | \ No newline at end of file |
33 | +] |