static.py
14 lines
| 380 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) | ||||
return render(request, 'boards/staticpages/' + name + '.html', context) | ||||