Having this in models causes an error - not sure exactly why. All the
other's are also in __init__.py (the other signals of this kind that is).

Out of interest here is the error:

Traceback (most recent call last):
  File "./manage.py", line 29, in <module>
    execute_manager(settings)
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 219, in execute
    self.validate()
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 249, in validate
    num_errors = get_validation_errors(s, app)
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/core/management/validation.py",
line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/db/models/loading.py",
line 146, in get_app_errors
    self._populate()
  File
"/home/simon/.virtualenvs/commcarehq/local/lib/python2.7/site-packages/django/db/models/loading.py",
line 67, in _populate
    self.write_lock.release()
  File "/usr/lib/python2.7/threading.py", line 142, in release
    raise RuntimeError("cannot release un-acquired lock")
RuntimeError: cannot release un-acquired lock




On Fri, May 24, 2013 at 9:55 PM, Cory Zue <notifications@github.com> wrote:

> In fluff/__init__.py:
>
> > @@ -6,6 +6,7 @@
> >  from fluff import exceptions
> >  from pillowtop.listener import BasicPillow
> >  from .signals import indicator_document_updated
> > +import fluff.sync_couchdb
>
> usually i see this import in .models but if it works here then that's fine.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/fluff/pull/17/files#r4388016>
> .
>



-- 
Simon Kelly
Senior Engineer | Dimagi South Africa