On Thu, 2006-10-19 at 04:32 -0700, MerMer wrote:
> I've tried to set up a signals.py file in the same directory as my app
> ("products").
> 
> At the top of the signals.py I have the following import statement:
> 
> from myapp.products.models import Product, Review
> 
> The two model classes (Product and Review) both sit in the models.py in
> the products directory.
> 
> However, whenever I run this I get an import error.  I just can't
> figure out where I could be going wrong.  Any ideas?

The import error will tell you a bit more information about what is
going than just "I am an import error". That extra information would
probably help us help you.

The first thing I would think to ask here is whether your models.py file
also tries to import things from signals.py. If so, you won't be able to
import explicit members of models.py into signals (importing just
"models" and then referring to models.Product and models. Review should
probably work, though).

Cheers,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to