I've seen this subject several times in the mailing lists without
being able to find a definite/useful answer in the mailing list.
I'm going to have a server with several domain names serve a few
applications (blog, photo gallery,...). But I'm a bit at a loss when
dealing with how to organize the different files.
In Django there's a separation between templates, media, applications,
the sites urls.py,... The question is, what is the
suggested/official/best practices way of managing a server with
several sites? Same for keeping an svn tree.
Do you organize it like:
/templates/site1
/site2
/media/site1
/site2
/urls/site1
/site2
/apps/app1
/app2
/app3
Or more like:
/site1/templates
/media
/urls.py
/site2/templates
/media
/urls.py
Or maybe another way?
Same for svn (maybe for svn it makes more sense the second model...).
Thanks a lot,
G
But afterwards, with the second model, how can you integrate it for a
webpage to work?
Imagine a webpage that uses several distinct applications, each one
with different templates, media,... In the webserver you will still
have only one template subdirectory and one media subdirectory. How
will you integrate all this?
Thanks,
G
> Or more like:
> /site1/templates
> /media
> /urls.py
> /site2/templates
> /media
> /urls.p
this makes sense to me, with common stuff somewhere else central
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
I've been searching at the same time for the svn, and I've found that
no one does it the same way. But's also true an important number of
the projects are still in pre-magic state.
In the mean time I've also found 'Do's and dont's for application writers':
http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters
They say "To avoid clashes, use a name for the project which is unique
to you, the author, such as one based on a domain name that you own."
From an svn point of view, wold you then do something like this?
ibofobi/
apps/
mnemosyne/
branches/
tags/
trunk/
and force contributors to checkout to a directory ibofobi/apps/mnemosyne?
Or should this be part of the settings.py somehow as a variable?
Thanks a lot, I fid those organization questions are non-trivial for me.
G