phantasmobile/app/page/views.py

13 lines
351 B
Python
Raw Normal View History

2023-07-25 19:03:54 +00:00
from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from . import models
2023-07-26 09:50:09 +00:00
from ..utils import default_context
2023-07-25 19:03:54 +00:00
def page(request, slug):
page = get_object_or_404(models.Page, slug=slug)
2023-07-26 09:50:09 +00:00
context = default_context(request)
context['page'] = page
2023-07-25 19:03:54 +00:00
return render(request, 'page.html', context)