##// END OF EJS Templates
Don't store threads list of a tag, cause this data can be got from thread's tags relations
Don't store threads list of a tag, cause this data can be got from thread's tags relations

File last commit:

r890:dec155c1 default
r909:ffe54c08 default
Show More
not_found.py
18 lines | 415 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
def get(self, request):
context = self.get_context_data(request=request)
neko259
Updates to support django 1.7
r872
# TODO Use dict here
neko259
404 page now returns the 404 status for real. Fixed some tests related to...
r890 response = render(request, 'boards/404.html', context_instance=context)
response.status_code = 404
return response