|
|
|
|
|
by philote
1035 days ago
|
|
Django is a super heavy framework that includes most anything you'd ever want. There's a ton to learn. Have you tried lighter-weight ones like Flask? I much prefer a lightweight web framework with an easy-to-use ORM/ODM. Also, even though you don't use frameworks, I assume you use various libraries to handle web requests and such, right? |
|
When I think about heavy, I think about how hard it would be to replace the framework with my own code in the future. So I don't like magic.
One thing that keeps me from investigating Flask further is that Django seems to be way more popular:
https://trends.google.com/trends/explore?date=all&q=django%2...
So it will probably stay around longer.
Me and other devs maintain this repo which shows how to get from a fresh Debian install to a running web app via different frameworks:
https://github.com/no-gravity/web_app_from_scratch
As you can see, it also has a Flask version.
Contributions are welcome!
As for libraries: PHP has great http and html support build in already. Python is a bit tricky in this regard. That's why I would give Django another try for new web projects. But I also had success just rolling my own http/html code in Python.