prelom/django/cms/views.py

10 lines
182 B
Python

from django.shortcuts import render
from django.views import generic
from .models import Page
class PageView(generic.DetailView):
model = Page
template_name = 'page.html'