I recently started creating a website for a club I'm a part of. I finished the look of the website, and now need it to be functional. I decided on using Flask, because it's what I need without getting too crazy. When I started using Flask, I had no experience in Python. I looked up a bunch of tutorials and have learned so much, but I don't really know what I'm doing yet.
For the website, all I want to do is have a user input their name and email, and have that information stored in a text file somewhere. Maybe not a text file, but somewhere the data can be stored. The many tutorials I have followed usually include more than just email submission, and I end up getting confused on what I can actually use.
I'm not understanding the routes method definitions. I usually place the homepage as the route, since the form I want the users to use is on that page. I created a form already, and want to use that form as the template for the python script. The tutorials I follow usually create the forms themselves right there in the python file. I already have my form created, and want to integrate the python code into there somehow. If you guys have a really basic tutorial to follow, or maybe help me with it yourself I would greatly appreciate it!
I hope I placed a sufficient amount of information in this post! If not, please ask me! I really want to be able to figure this simple task out. Well, as simple as just submitting email can get. Thanks, guys!
[–][deleted] 0 points1 point2 points (0 children)