L
L
leha782016-01-11 14:10:16
Django
leha78, 2016-01-11 14:10:16

What could be wrong here (small code in the topic)?

32e90db765f040a9a63469c0be0d3df3.png1280300541dd45a1a983baf8ac742fef.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ivan Tishchenko, 2016-01-11
@leha78

It seems you missed
Then you declare a variable post
Here is an example: tutorial.djangogirls.org/ru/django_forms/index.html

S
Salavat Sharapov, 2016-01-11
@desperadik

Just change post to form

N
Nerevar_soul, 2016-01-11
@Nerevar_soul

The post variable does not exist. You first need to define it, and only then save or add new parameters.
For example after if:
post = form

V
Vladimir, 2016-01-11
@vintello

well, it's not just necessary to change post to form. there you need to understand what is going on. The author doesn't seem to understand. for example, if the form is not valid, what will happen to you? Or is this the topic of the next question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question