You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
403 B
16 lines
403 B
from django.shortcuts import render
|
|
|
|
from akce.models import Akce
|
|
from kolotoc.models import Kolotoc
|
|
from django.http import HttpResponse
|
|
from django.template import loader
|
|
|
|
def akce(request):
|
|
template = loader.get_template('akce/akce.html')
|
|
dotazy = Akce.objects.all()
|
|
print(dotazy)
|
|
content = {
|
|
"dotazy": dotazy,
|
|
}
|
|
|
|
return HttpResponse(template.render(content, request))
|