not_found.py
13 lines
| 304 B
| text/x-python
|
PythonLexer
neko259
|
r555 | from django.shortcuts import render | ||
from boards.views.base import BaseBoardView | ||||
neko259
|
r561 | |||
neko259
|
r555 | class NotFoundView(BaseBoardView): | ||
neko259
|
r561 | """ | ||
neko259
|
r555 | Page 404 (not found) | ||
neko259
|
r561 | """ | ||
neko259
|
r555 | |||
def get(self, request): | ||||
context = self.get_context_data(request=request) | ||||
return render(request, 'boards/404.html', context) | ||||