static.py
13 lines
| 379 B
| text/x-python
|
PythonLexer
neko259
|
r565 | from django.shortcuts import render | ||
from boards.views.base import BaseBoardView | ||||
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) | ||||