14 lines
330 B
Python
14 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()
|
||
|
}
|