static.py
17 lines
| 449 B
| text/x-python
|
PythonLexer
neko259
|
r565 | from django.shortcuts import render | ||
from boards.views.base import BaseBoardView | ||||
neko259
|
r690 | |||
neko259
|
r565 | class StaticPageView(BaseBoardView): | ||
neko259
|
r577 | def get(self, request, name): | ||
neko259
|
r565 | """ | ||
Show a static page that needs only tags list and a CSS | ||||
""" | ||||
context = self.get_context_data(request=request) | ||||
neko259
|
r872 | |||
# TODO Use dict here | ||||
return render(request, 'boards/staticpages/' + name + '.html', | ||||
context_instance=context) | ||||