not_found.py
17 lines
| 369 B
| text/x-python
|
PythonLexer
|
r555 | from django.shortcuts import render | ||
from boards.views.base import BaseBoardView | ||||
|
r561 | |||
|
r555 | class NotFoundView(BaseBoardView): | ||
|
r561 | """ | ||
|
r555 | Page 404 (not found) | ||
|
r561 | """ | ||
|
r555 | |||
|
r1988 | def get(self, request, *args, **kwargs): | ||
|
r919 | params = self.get_context_data() | ||
|
r872 | |||
|
r919 | response = render(request, 'boards/404.html', params) | ||
|
r890 | response.status_code = 404 | ||
return response | ||||