sdbs-infra/sdbs_infra/dashboard/views.py
2020-06-14 12:08:11 +02:00

13 lines
330 B
Python

from django.views.decorators.cache import cache_page
from django.views.generic import TemplateView
from sdbs_infra.dashboard.models import Service
class IndexView(TemplateView):
template_name = "index.html"
def get_context_data(self, **kwargs):
return {
'services': Service.objects.all()
}