I suggest this structure:

myproject
 - apps
 - libs
 - conf
 - public
 - settings.py
 - urls.py

conf:
 - production.py
 - test.py
 - dev.py

libs:
 - all third party modules

public:
  - media
  - static
  - admin
  - django.wsgi



each app structure:
 - admin
 - backends
 - commands
 - context_processors
 - decorators
 - feeds
 - forms
 - management
 - managers
 - middleware
 - models
 - signals
 - sitemaps
 - templates
 - templatetags
 - tests
 - urls.py
 - views

most of above are unnecessary for simple project, so I suggest to add
a switch to manage.py startapp to do this.
I am suggesting that app should have directories not files...
When you develop large app (CRM) you have to write tens of models,
with overriding saves, __unicode__, Meta and custom methods it becomes
hard to read and maintain

I solve this by adding app_label to each of my models in separate
files and models/__init__.py imports all models. It works like a
charm.
I think it should be by default :}

I created skel/django/project and skel/django/app folders, where I
have this file structure
when I start project I simply copy folder, rename it, and adjust

--
Matt Harasymczuk
www.matt.harasymczuk.pl

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to