##// END OF EJS Templates
Added GET request handler, command for key generation. Changed KeyPair format for ecdsa (use to_string instead of to_pem because it's shorter)
Added GET request handler, command for key generation. Changed KeyPair format for ecdsa (use to_string instead of to_pem because it's shorter)

File last commit:

r690:a8dffe47 1.8-dev
r836:9ee107b9 decentral
Show More
static.py
14 lines | 380 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)