not_found.py
12 lines
| 303 B
| text/x-python
|
PythonLexer
|
r555 | 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) | ||||