Module views
source code
A view functions is simply a Python function that takes a Web request
and returns a Web response. This response can be the HTML contents of a
Web page, or a redirect, or the 404 and 500 error, or an XML document, or
an image... or anything.
|
logger = logging.getLogger('views-feedback')
|
Imports:
sys,
locale,
datetime,
traceback,
logging,
settings,
template_loader,
HttpResponse,
HttpResponseRedirect,
render_to_response,
Context,
page_not_found,
server_error,
debug,
reverse,
SendFeedback,
ErrorForm,
CommentForm
Custom 500 error handler.
Templates: `500.html` Context: ErrorForm
|