Django: AppRegistryNotReady()

If you are using your django project applications in standalone scripts, in other words, without using manage.py – you need to manually call django.setup() first – it would configure the logging and, what is important – populate apps registry. Quote from Initialization process docs: setup() This function is called automatically: When running an HTTP server … Read more

django 1.7 migrate gets error “table already exists”

If you have the table created in the database, you can run python manage.py migrate –fake <appname> Mark migrations as run without actually running them Or if you want to avoid some actions in your migration, you can edit the migration file under the app/migrations directory and comment the operations you don’t want to do … Read more

How to resolve “django.core.exceptions.ImproperlyConfigured: Application labels aren’t unique, duplicates: foo” in Django 1.7?

The problem is that with the changes to apps in Django 1.7, apps are required to have a unique label. By default the app label is the package name, so if you’ve got a package with the same name as one of your app modules (foo in this case), you’ll hit this error. The solution … Read more