Ask coding questions

← Back to all posts
Flask wtf not displaying form
isaiah08 (63)

If you go to, you will see a page without a form. In the file and the templates/add.html file a programed in a wtf form. Why is this not working??? Thanks!

OmN3xin (51)

when you chech if real_key == key: when you add the else statement the route is 100% going to return with a redirect to '/' or a redirect to '/add' which just makes you redo this function, you never get the return at the end of the function.

isaiah08 (63)

Never mind, it turns out it was to do with jinja templating. @OmN3xin