
6 changed files with 23 additions and 5 deletions
@ -0,0 +1,4 @@ |
|||
Django==3.2.4 |
|||
django-ckeditor==6.1.0 |
|||
Pillow==8.2.0 |
|||
|
@ -0,0 +1,6 @@ |
|||
{%extends "kinoostrov/base.html" %} |
|||
|
|||
{% block content %} |
|||
{{stranka.nadpis}} |
|||
{{stranka.content|safe}} |
|||
{% endblock %} |
@ -1,6 +1,11 @@ |
|||
from django.shortcuts import render |
|||
|
|||
# Create your views here. |
|||
from stranky.models import Stranka |
|||
|
|||
def stranka(request,sid): |
|||
pass |
|||
|
|||
def stranka(request, sid): |
|||
s = Stranka.objects.get(id=sid) |
|||
|
|||
|
|||
return render(request, "stranky/stranka.html", {"stranka": s}) |
|||
|
Loading…
Reference in new issue