##// END OF EJS Templates
Added django management command to clean old users. Cleaned up failing tests. Fixed error when trying to get a non-existent post
Added django management command to clean old users. Cleaned up failing tests. Fixed error when trying to get a non-existent post

File last commit:

r577:a519da78 default
r689:3d81370e 1.8-dev
Show More
static.py
13 lines | 379 B | text/x-python | PythonLexer
from django.shortcuts import render
from boards.views.base import BaseBoardView
class StaticPageView(BaseBoardView):
def get(self, request, name):
"""
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)