I have tasks.py that imports models to access the managers. I also want to import a task in a custom save method of one of my models but can't as this creates a circular import.
I'm happy to use signals instead hover I don't really know where to register them apart from models.py (which would also create a circular import). Russel Keith Magee said "Django 1.3 will probably introduce a third option -- a reliable place to register signals" [1] however the release notes [2] don't make any mention of this. The best thing I can think of at the moment is adding the import in the custom save method, this seems like it could be a common problem - there must be a better solution? [1] http://groups.google.com/group/django-users/browse_thread/thread/39bd9c6c1c25aad2/6ea0ca4a21e72bde?lnk=gst&q=circular+import#6ea0ca4a21e72bde [2] http://docs.djangoproject.com/en/dev/releases/1.3/ -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.