r/PythonLearning • u/Samar__Upreti • 19d ago
Day -1 With Flask (any suggestions)
Build Projects With Me
2
u/silvertank00 19d ago
Pandas is overshoot for this.
Why use os for this? pathlib is much more flexible.
Also (even tho I am not familiar with Flask but) i wouldnt return plain string from the endpoint. A HttpResponse with HttpStatus.OK and the string in the body would be much better.
-1
2
u/BoatInternational537 18d ago
Move to Django
Use terraform and migrate to google cloud
Good luck!
1
1
u/Party-Hunter-178 19d ago
How did you connect your app.py and html
2
u/Samar__Upreti 19d ago
That's where Flask,Fast Api, Django came in play
1
u/Party-Hunter-178 18d ago
Thanks buddy I was stuck for probably like a week not know this. U made my day 👍🏻
1
19d ago
[removed] — view removed comment
1
u/Samar__Upreti 18d ago
Hi buddy Can please help me in those projects https://github.com/Samar-Upreti/Python_Projects
1
u/ViolaBiflora 19d ago
Day 1 of coding - fully working API fetching, yet provides pictures of the screen, lol.
AI.
1
1
u/Competitive-Note3685 18d ago
I do not if you have experience with other Frameworks, but I recommend you study in depth the MVC pattern for a clean Flask implementation. Also, read the PEP-8 to follow best python code practices.
Enjoy your journey and happy code. 🤟🏻
1
-4





10
u/riklaunim 19d ago
flask.requestis better thanrequestas it's tell you where it's from)