If you do:

python manage.py shell

you will get a python shell with all the necessary paths set up so
that you can do your testing. You may also want to consider some sort
of automated testing as it makes this sort of thing a lot easier and
quicker.

Euan

On 24 June, 05:04, robinne <develo...@computer-shoppe.net> wrote:
> 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-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