Django 1.7 upgrade error: AppRegistryNotReady: Apps aren't loaded yet

see http://django.readthedocs.org/en/latest/releases/1.7.html#standalone-scripts

import django
django.setup()

I had a similar (the same?) isssue when upgrading to Django 1.7. In may case, it was enough to update the wsgi file: replace

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

with

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

I was looking through all these thread to get celery working on windows (with this particular error message) and I just want to emphasize putting

import django
django.setup()

at the top of your tasks.py file, this is finally what got it working for me.