4 ms·
You might as well use Flask at that point. You can use cookie-cutter to create the starter packs.
by rukittenme 10y ago
You might as well use Flask at that point. You can use cookie-cutter to create the starter packs.
- cmdrfred 10y agoI love Flask. People say Django is easier to use but I had a much easier time with Flask. It's well documented and very flexible.
- knabacks 10y agoMaybe not easier to use in general, but you don't have to replicate all the daily stuff you maybe need for your project. With Flask you have to recreate many things (for example acc management) or rely on a thrid party-dev. In django you get core stuff from the core team(also with the freedom of recreating it yourself or use some app from a thridparty-dev).
- hrayr 10y agoSure, I love Flask but Django has it's own ecosystem and that's what I'm talking about. I know anyone can use cookie-cutter, but I'm talking about trimming Django itself. Externalize Forms, Templates, etc. and build several core starter packages (including current Django). This gives a few base starting points.
- jsmeaton 10y agoThere are two benefits to having subpackages in the way you describe. The first, as you mention, is to slim down the framework. I don't think this gains a whole lot except for trimming down deployment sizes. If you don't use the components then the code doesn't run. The other benefit would be so that the components could be used outside of Django. Using forms or templates might appeal to projects outside of Django. This isn't currently possible for a large majority of components since they depend on the global settings module, and/or other components. What could be done with the dependency constraints is to build in different templates that `startproject` would create for you. It'd only be able to modify settings and write out requirements files, but it'd achieve a structure for different app types.
- brianwawok 10y agoDJango 1.10 source download is 7MB. I don't know what is normal for Ruby. Basic crud app in Java tends to be 20-50MB, but DJango above doesn't have DB drivers or anything yet so I suspect it is similar. *seems reasonable.