trying to do console testing of my models, "no module named X"
I have a django project running on local linux machine with apache. I
run this at localhost:8081 and I use import statements to import my
models in my views (e.g. "from DjangoSite.ManageProducts.models import
Member").
For testing, I want to be able to import my models into python console
and run test queries. I don't know how python knows where my models
are...when I run import statement in python console, it comes back
with error "no module named DjangoSite.ManageProducts.models".
How do I references my own modules using console? Do I need to add my
project to python path?
Thanks
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home