FEDX-118 Adding header to test page
This commit is contained in:
committed by
Clinton Blackburn
parent
717b56a7b2
commit
3cbb2d1a08
@@ -12,17 +12,3 @@ from django.http import HttpResponseNotFound
|
||||
def dev_mode(request):
|
||||
"Sample static view"
|
||||
return render_to_response("dev/dev_mode.html")
|
||||
|
||||
|
||||
def dev_show_template(request, template):
|
||||
"""
|
||||
Shows the specified template as an HTML page.
|
||||
e.g. /template/ux/reference/container.html shows the template under ux/reference/container.html
|
||||
|
||||
Note: dynamic parameters can also be passed to the page.
|
||||
e.g. /template/ux/reference/container.html?name=Foo
|
||||
"""
|
||||
try:
|
||||
return render_to_response(template, request.GET.dict())
|
||||
except TopLevelLookupException:
|
||||
return HttpResponseNotFound("Couldn't find template {tpl}".format(tpl=template))
|
||||
|
||||
Reference in New Issue
Block a user