API-Manager/apimanager/base/views.py
Sebastian Henschel 2358d8eed6 Ported obp app from API Tester #31
Also enables possibility to use DirectLogin and GatewayLogin
2017-10-24 13:19:33 +02:00

18 lines
405 B
Python

# -*- coding: utf-8 -*-
"""
Views for base app
"""
from django.conf import settings
from django.views.generic import TemplateView
class HomeView(TemplateView):
"""View for home page"""
template_name = "home.html"
def get_context_data(self, **kwargs):
context = super(HomeView, self).get_context_data(**kwargs)
context['API_HOST'] = settings.API_HOST
return context