Julia Wu
1 min readApr 5, 2019

--

The form action should be /addpost and not /posts (mistake in the article)

So your form in post_form.html should look like

<form action="/addpost" method="post">
<label>Post Title</label>
{{ postform.title }}
<label>Post Text</label>
{{ postform.post_text }}
<input type="submit" name="submit">
</form>

Once you change that, you should see the post show up in the HTML as well as pgAdmin

--

--

Julia Wu
Julia Wu

Written by Julia Wu

Building something new. Prev. eng at Brex, Apple, MSFT. More at juliawu.me

No responses yet