For each new site I work on I have a root folder which contains a copy
of Django, other 3rd party libs I need, and a Django project for my
site. I do this so I can upgrade or customise Django for each site
individually without breaking other sites. I'll probably switch back
to a common Django after 1.0 is released.

I usually treat the Django "project" as an application by adding it to
the INSTALLED_APPS list and adding models, views, and templates
directly to the project folder. I guess this is basically just an app
in my pythonpath + a settings.py and a manage.py.

If it's a large project that can be broken up into several
applications, i put those in root/myproject/apps/myapp. I had never
considered putting apps at the root level completely outside of any
Django project folder. I can see now that I could benefit by putting
any extra apps at the root level alongside Django and myproject, so
they can be more easily re-used by other sites/projects.

I did find that I do a lot of small sites which have pretty much the
same structure, so I thought it'd be nice to be able to specify a skel
folder or a skel settings file during startproject or startapp which
would create the folder structure I commonly need. e.g. django-
admin.py startproject --skel ~/django_skel, could just copy the files
and folders across, and if there's a settings.py it could override the
options from the default settings.py with those found in my ~/
django_skel/settings.py. This wouldn't require Django developers to
determine a best fit skel for all users, but would allow users who
create many small sites/projects to setup their own skel structure.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to