That would work but I put them right at the root of my project, not in an
app folder so I just add 'blog' to my INSTALLED_APPS. Every distributable
app I saw is meant to be put somewhere directly in the PYTHONPATH and not in
a subpackage so I follow that rule.

If you put them inside an folder name apps in your project directory to be
more organized, you can do:

from os.path import dirname, join
from sys import path

path.append(join(dirname(__file__), "apps"))

You could always just do dirname(__file__) + "/apps" but os.path.join is os
independant too and will join okay on Windows too.

By the way, I also use the __file__ trick to put my database directly in my
project's folder no matter where in the filesystem the project is and
likewise with my templates.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to