Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label
Any advice would be tremendously appreciated.
I'm using Python 3.4 and Django 1.10.
From my settings.py:
INSTALLED_APPS = [
'DeleteNote.apps.DeletenoteConfig',
'LibrarySync.apps.LibrarysyncConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
And my apps.py files look like this:
from django.apps import AppConfig
class DeletenoteConfig(AppConfig):
name = 'DeleteNote'
and
from django.apps import AppConfig
class LibrarysyncConfig(AppConfig):
name = 'LibrarySync'
The
myAppNameConfig
is the default class generated at apps.py by the .manage.py createapp myAppName command. Where myAppName is the name of your app.settings.py
This way, the settings file finds out what you want to call your application. You can change how it looks later in the apps.py file by adding the following code in
myAppName/apps.py