canonical-django team mailing list archive
-
canonical-django team
-
Mailing list archive
-
Message #00000
Django project template
Hi, I promised a few people I'd share this today, here it is:
https://code.edge.launchpad.net/~canonical-django/canonical-django/project-template
Marc Tardif and I created this originally in order to make it easier
for he and I to work on the same code but with different
configurations. For example, his PC used different folders than my PC
and the production server not only used different folders but a
different type of database as well.
Nick Moffitt further enhanced it so that the project had its own
python-path which allowed adding modules to the project, including
django itself, without needing to have root access to install python
modules system wide. (the benefits to this are far reaching)
Since then I've made some further enhancements by adding some code to
settings.py that makes it filesystem agnostic. I also standardized on
a www/ folder for images and static content and tweaked the
configuration so that things work the same when running the
development server and when deploying to apache/mod_python.
There is a readme.txt file which includes the steps for usage. I'm
sorry that it's more complex than the point-and-shoot method you're
probably used to. However you only have to do it once per project.
Once you follow the steps in there you'll probably want to:
cd trunk
bzr init
bzr add && bzr commit
Please let me know your thoughts on this. I'm sure there is room for
improvements.
--
Matthew Nuzum
newz2000 on freenode
Follow ups