##// END OF EJS Templates
AJAX-based thread creation
AJAX-based thread creation

File last commit:

r1988:5bf4a97e default
r1998:8255ca3c default
Show More
not_found.py
17 lines | 369 B | text/x-python | PythonLexer
neko259
Moved 404 page to class-based views
r555 from django.shortcuts import render
from boards.views.base import BaseBoardView
neko259
Minor style fixes to view classes. Fixed ban view
r561
neko259
Moved 404 page to class-based views
r555 class NotFoundView(BaseBoardView):
neko259
Minor style fixes to view classes. Fixed ban view
r561 """
neko259
Moved 404 page to class-based views
r555 Page 404 (not found)
neko259
Minor style fixes to view classes. Fixed ban view
r561 """
neko259
Moved 404 page to class-based views
r555
neko259
Fixed page 404 and some tests
r1988 def get(self, request, *args, **kwargs):
neko259
Fixed tag threads view
r919 params = self.get_context_data()
neko259
Updates to support django 1.7
r872
neko259
Fixed tag threads view
r919 response = render(request, 'boards/404.html', params)
neko259
404 page now returns the 404 status for real. Fixed some tests related to...
r890 response.status_code = 404
return response