def publi sh (запрос): if request.method == 'GET': вернуть визуализацию (запрос, 'publi sh. html') else: secret = print (request.POST ['secret) ']) name = print (request.POST [' name ']) text = print (request.POST [' text '])
publications_date.append({
'id': len(publications_date),
"name": name,
"date": datetime.now(),
"text": text
})
return redirect('/publications')