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