static.py
13 lines
| 314 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 | ||||
""" | ||||
neko259
|
r919 | return render(request, 'boards/staticpages/' + name + '.html') | ||