Hacker News new | ask | show | jobs
by schpet 5172 days ago
I really like this, I'm looking forward to digging through the source and finding out how folks set up their django apps.
1 comments

I came here to comment just this. I downloaded it for fun and was stoked to see manage.py! Interesting indeed to explore others' conventions. I particularly like settings as a module.

One thing I tend to avoid, however (of course this is just my personal taste) is templates in each sub-app. I feel like at that point there are just too many nested directories. I'd rather have one global templates dir for the entire project.

I often-times argue with myself over this. I do agree that one global template dir is nice but it makes the apps less copy-and-paste-able and I feel like Django apps were meant to be somewhat self-contained.

However, sometimes you have so many cross-links between apps in Django projects that taking out a single app to use in another project basically breaks most of the functionality.

There are big pros and cons for doing it either way.

How often do you take an app, drop it somewhere, and never modify it? I stick to "my way" because I always end up modifying the hell out of templates.