<gh_stars>1-10
from django.shortcuts import render
from django.views.generic import DetailView
from .models import Page


def home(request):
    return render(request, "public_home.html")

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


def home(request):
    return render(request, "public_home.html")

class PageView(DetailView):
    model = Page
    template_name = 'page.html'