##// END OF EJS Templates
Moved 404 page to class-based views
Moved 404 page to class-based views

File last commit:

r555:89908dc2 1.7-dev
r555:89908dc2 1.7-dev
Show More
not_found.py
12 lines | 303 B | text/x-python | PythonLexer
from django.shortcuts import render
from boards.views.base import BaseBoardView
class NotFoundView(BaseBoardView):
'''
Page 404 (not found)
'''
def get(self, request):
context = self.get_context_data(request=request)
return render(request, 'boards/404.html', context)