Also make sure that in you app folder and every folder for that matter has a 
__init__.py that way python will view it as a module.

--- On Wed, 11/17/10, Shawn Milochik <sh...@milochik.com> wrote:


From: Shawn Milochik <sh...@milochik.com>
Subject: Re: INSTALLED_APPS doesn't check my projet dir
To: django-users@googlegroups.com
Date: Wednesday, November 17, 2010, 11:14 AM


When you put an app into INSTALLED_APPS, it looks on your PYTHONPATH.

If you make an app intended to be pluggable, your users should be
installing your application with pip or something, and your app code
will exist on the PYTHONPATH, not in a subfolder of their Django
project.

If you want to develop your app in a manner more like it will be used,
then put your app outside of your Django project, and on your
PYTHONPATH. That will allow (force) you to import it as another
developer who plugged in your app would.

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




      

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to