3 ms·
I worked on a large Python project before Django came out and ended up building my own framework. Recently, when I used Django, I realized that almost every fe
by bokonist 19y ago
I worked on a large Python project before Django came out and ended up building my own framework. Recently, when I used Django, I realized that almost every feature it had was something I had ended up writing myself. Django had a lot more man hours going into the framework and was much cleaner and better tested than my implementation.
There are certain things you need for every project:
-ways to handle configuration files for different environments
-a pattern to map URL's to methods and templates
-a basic ORM so you don't have to write SQL for every single CRUD operation
-a test framework that simulates an actual web request
-a way to handle SQL migrations
-a way to get data to and from forms
Almost every production web site needs all of the above. Why spend time doing it yourself when people have solved these problems already? The only reason I can see for writing your own framework is as a pure learning experience.