phantasmobile/app/page/views.py

13 lines
323 B
Python

from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from . import models
def page(request, slug):
page = get_object_or_404(models.Page, slug=slug)
context = {
'settings': settings,
'page': page,
}
return render(request, 'page.html', context)