Malcom, many thanks.

I have to admit as a newbie to Python and Django and I dont' fully
understand how "import" works.  I just presumed that you put a
reference to any module at the top.

At the top of the product.models.py file I have the following:-

"from mysite.promotions.signals import update_review_average"

update_review_average is the function being run in the signals.py

To further confuse the matter when I run "manage.py validate" from the
command line I get the following

"mysite.promotions:cannot import name Review"
"mysite.products: cannot import name Review"

As soon as I comment out the reference to the signal file
and remove the import statement from the top of the signal
file everything works again.

It's puzzling to me that with the signal.py in place  I am getting
errors
message for two applications.   The app  "products" (which is home to
the models.py file where Product sits and home to signals.py) AND the
promotions app - which has the following import statement:-

from myapp.products.models import Promotion, Review

Cheers

MerMer


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