Hi guys--

Total Python & Django newbie here, so thanks in advance for your  
patience.

I'm trying to set up a rather baroque search-sorter for one of my  
views.py, & not surprisingly my first stab isn't working.  So, I'm  
trying to fire up the Python debugger as follows:

"python -m pdb views.py"

& when I get to the following line in my code:

from mysite.drpack.models import PubMedSummary

...I inevitably get "ImportError: 'No module named  
mysite.drpack.models'"

As per the documentation, I've run 'python -c "from  
distutils.sysconfig import get_python_lib; print get_python_lib()"'  
to find where my site-packages are stored (/usr/local/lib/python2.5/ 
site-packages), & I've put the following symlinks into said site- 
packages directory:

django -> /home/jason/django_src/django/
killdjangokill -> /home/jason/killdjangokill/

The second was just a shot in the dark for good measure, as /home/ 
jason/killdjangokill/mysite/models.py is the module I'm hoping pdb  
will find & import.

What am I doing wrong?  Do I need to somehow reload Python to get it  
to take the new path?

Thanks very much for any advice!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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