List Info

Thread: Best project structure for multiple apps?




Best project structure for multiple apps?
user name
2006-05-31 18:09:28
Hi!

I have an existing system that is somewhat unique and I am
trying to
figure out the best organizational structure for it within
Django.  I
was wondering if anyone had any best practices or thoughts
on how best
to structure this.

This is a system that currently does a lot of back-end
processing, so
there would be a big need to use Django models as the
interface into
the database.  These python processes, run manually or on a
cron,
modify/update/insert data into various tables in the
database.

There are two (and eventually three) totally separate web
applications,
with different domains that access these tables.  Each
application may
have a table or two it uses on its own, but the vast
majority of tables
are shared between the applications, and the back-end
processes.

Being new to Django, I'm not sure the best layout.  Do I
have one
project with two different applications for my two websites,
with
separate settings files (or do I just need one settings file
and have
django route based on the top-level domain name?).  Where do
all the
common table model classes go?  A separate app, or outside
the app
structure entirely?  If outside the app structure entirely,
what about
being able to "admin" certain tables (most
tables won't need to be
"admin"able, but some it would be nice).

Any thoughts on how I would best organize this would be most
appreciated!

Thanks much,
Eric


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )