diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index ff3a719927..20d76840d7 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -1588,14 +1588,7 @@ class ContentStoreTest(ModuleStoreTestCase): 'name': loc.name})) self.assertEqual(resp.status_code, 200) - # static_pages - resp = self.client.get(reverse('static_pages', - kwargs={'org': loc.org, - 'course': loc.course, - 'coursename': loc.name})) - self.assertEqual(resp.status_code, 200) - - # static_pages + # asset_index resp = self.client.get(reverse('asset_index', kwargs={'org': loc.org, 'course': loc.course, diff --git a/cms/djangoapps/contentstore/views/tabs.py b/cms/djangoapps/contentstore/views/tabs.py index f897fa1378..d19f4ae6a3 100644 --- a/cms/djangoapps/contentstore/views/tabs.py +++ b/cms/djangoapps/contentstore/views/tabs.py @@ -14,10 +14,9 @@ from xmodule.modulestore.inheritance import own_metadata from xmodule.modulestore.django import modulestore from ..utils import get_course_for_item, get_modulestore -from .access import get_location_and_verify_access -__all__ = ['edit_tabs', 'reorder_static_tabs', 'static_pages'] +__all__ = ['edit_tabs', 'reorder_static_tabs'] def initialize_course_tabs(course): @@ -126,20 +125,6 @@ def edit_tabs(request, org, course, coursename): }) -@login_required -@ensure_csrf_cookie -def static_pages(request, org, course, coursename): - "Static pages view" - - location = get_location_and_verify_access(request, org, course, coursename) - - course = modulestore().get_item(location) - - return render_to_response('static-pages.html', { - 'context_course': course, - }) - - # "primitive" tab edit functions driven by the command line. # These should be replaced/deleted by a more capable GUI someday. # Note that the command line UI identifies the tabs with 1-based diff --git a/cms/templates/static-pages.html b/cms/templates/static-pages.html deleted file mode 100644 index ce1307905c..0000000000 --- a/cms/templates/static-pages.html +++ /dev/null @@ -1,42 +0,0 @@ -<%! from django.utils.translation import ugettext as _ %> -<%inherit file="base.html" /> -<%! from django.core.urlresolvers import reverse %> -<%block name="title">${_("Static Pages")} -<%block name="bodyclass">view-static-pages - -<%block name="content"> -
-
-

Static Pages

-
- -
- -
-
- diff --git a/cms/urls.py b/cms/urls.py index 43358e5f35..b465b07f32 100644 --- a/cms/urls.py +++ b/cms/urls.py @@ -70,9 +70,6 @@ urlpatterns = ('', # nopep8 url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/gradeas.*$', 'contentstore.views.assignment_type_update', name='assignment_type_update'), - url(r'^pages/(?P[^/]+)/(?P[^/]+)/course/(?P[^/]+)$', - 'contentstore.views.static_pages', - name='static_pages'), url(r'^edit_tabs/(?P[^/]+)/(?P[^/]+)/course/(?P[^/]+)$', 'contentstore.views.edit_tabs', name='edit_tabs'),