diff --git a/cms/djangoapps/contentstore/views/dev.py b/cms/djangoapps/contentstore/views/dev.py index 1c4f0d643e..0fcc355c11 100644 --- a/cms/djangoapps/contentstore/views/dev.py +++ b/cms/djangoapps/contentstore/views/dev.py @@ -1,5 +1,12 @@ +""" +Views that are only activated when the project is running in development mode. +These views will NOT be shown on production: trying to access them will result +in a 404 error. +""" +# pylint: disable=W0613 from mitxmako.shortcuts import render_to_response def dev_mode(request): + "Sample static view" return render_to_response("dev/dev_mode.html") diff --git a/cms/urls_dev.py b/cms/urls_dev.py index ce2cecc8fe..cb31fc8b47 100644 --- a/cms/urls_dev.py +++ b/cms/urls_dev.py @@ -1,3 +1,8 @@ +""" +URLconf for development-only views. +This gets imported by urls.py and added to its URLconf if we are running in +development mode; otherwise, it is ignored. +""" from django.conf.urls import url urlpatterns = (