r/flask • u/Status-Fold-6860 • 10d ago
Ask r/Flask What features should all flask apps have?
I've been programming for about a year and a half now and built a small flask app to manage my music business. Basically a management application with some API integration and sqlalchemy. The app now works fine and is stable, but I'm wondering if there are any features/functions/etc. that all flask apps should have implemented, that don't seem obvious to a beginner like me. Cybersecurity and complex algorhithms still go a bit beyond my understanding, but I wanna make my app as secure, stable and reliable as possible.
2
u/loftybillows 10d ago
Secure headers https://github.com/GoogleCloudPlatform/flask-talisman
2
u/irishmrmagpie 10d ago
This seems to be the more up-to-date fork: https://github.com/wntrblm/flask-talisman
(I don't use this package myself, but comments in the issues of the GCP package indicate this is the maintained version)
1
u/Status-Fold-6860 7d ago
is this is a "one and done" type of protection or is any maintenance and integration into the app required?
1
u/justinf210 10d ago
How are you serving it? Is it using app.run() or is it being served by a "real" server?
1
u/Status-Fold-6860 10d ago
I'm using app.run() on a remote computer with ubuntu via ssh
5
u/Gloomy-Squirrel-9518 10d ago
Gunicorn is super easy to set up: https://flask.palletsprojects.com/en/stable/deploying/gunicorn/
1
2
u/ZealousidealGrass365 10d ago
Blueprints and wraps. They’re kinda basic idk if it’s something everyone uses or not.