Merge pull request #546 from edx/db/dev-views

Create urls/views/templates for dev-only views
This commit is contained in:
David Baumgold
2013-08-01 11:47:39 -07:00
5 changed files with 38 additions and 3 deletions

View File

@@ -15,3 +15,7 @@ from .public import *
from .user import *
from .tabs import *
from .requests import *
try:
from .dev import *
except ImportError:
pass

View File

@@ -0,0 +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")