Can’t visualize the validation error on flask web server
I am trying to show a validation error to the users when they try to sign up with an email or username that’s already been taken.
My website form is always sending POST request after submitting, even after reloading the webpage, causing duplications in the database
When submitting a form in the website, it saves the data inputted after submitting and if you reload or reopen the website, it sends a POST request and then immediately send the same data to the database.
Webpage for adding and removing emails from a text file
I have a very simple webpage which is just going to read a text file listing email addresses and write them into a table. Next to each row there is a delete button to delete that specific email from the list. There is also a button to save the data in the table to a file.
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Flask, Python, templates: Is it possible to pass variables from ‘index’ html to ‘post’, without using the variable in ‘post’ URL?
Context
Assigning the input from a HTML form as a variable
I am trying to code a URL shortener website and I have ran into a problem where I am getting ‘Error’ when trying to shorten my URL. It worked and gave a test URL when there was a link in the ‘long_url’ variable on my URL Shortener.py but when I tried changing it to get the input from the HTML form, it has stopped working. Does anyone know how to correctly assign an input from an HTML form to a python variable. I will attach my files.
Having 2 forms in 1 html file raises error: 400 Bad Request (flask)
I recently started learning flask and i ran into an issue that happens when 1 html file has 2 forms that can be submitted. This issue does not happen when there is only one form.
nothing is showing on my webpage when i run my flask program
Im a new coder and i dont know why even though there are no errors, nothing is appearing on my web browser! I am currently trying to create a program which can iterate through different pdf files and find keywords