On May 15, 2008, at 09:52 , J. Pablo Fernández wrote:
> ImportError: 'No module named bonvortaro'
>
> In the process of getting the commands, it tries to import the package
> and it fails. I could try setting up the pythonpath or something like
> that, but that would be only a workaround. There should be a better
> solution (and doesn't everybody have this same problem?)
You have to set your pythonpath to include your project. Or you can
symlink/move your project to a folder on the python path.
In production, if you use mod_python or mod_wsgi, you can set the
pythonpath using their configuration options. What I do, for quick
development, is modify manage.py to set its own pythonpath. Add
something like this before the line "from django.core.management
import execute_manager":
import sys
sys.path.append('/the/path/to/my/project')
Cheers,
-- Alex
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---