Model class social_django.models.UserSocialAuth doesn't declare an explicit app_label
See original GitHub issueNot sure if I am reading the documentation correctly, but after adding 'social.apps.django_app.default'
to the installed apps I get this error when trying to migrate:
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/user/git/venv/lib64/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/home/user/git/venv/lib64/python3.5/site-packages/django/core/management/__init__.py", line 341, in execute
django.setup()
File "/home/user/git/venv/lib64/python3.5/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/user/git/venv/lib64/python3.5/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/user/git/venv/lib64/python3.5/site-packages/django/apps/config.py", line 199, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 665, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/user/git/venv/lib64/python3.5/site-packages/social/apps/django_app/default/models.py", line 1, in <module>
from social_django.models import AbstractUserSocialAuth, UserSocialAuth, Nonce, Association, Code, DjangoStorage
File "/home/user/git/venv/lib64/python3.5/site-packages/social_django/models.py", line 68, in <module>
class UserSocialAuth(AbstractUserSocialAuth):
File "/home/user/git/venv/lib64/python3.5/site-packages/django/db/models/base.py", line 113, in __new__
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class social_django.models.UserSocialAuth doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Using:
- Django 1.10.4
- Python 3.5
- social-auth-app-djang 0.1.0
- social-auth-core 0.2.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Django model "doesn't declare an explicit app_label"
RuntimeError : Model class apps.portal.models.Business doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Read more >PYTHON : Django model "doesn't declare an explicit app_label"
PYTHON : Django model " doesn't declare an explicit app_label " [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] ...
Read more >Solved: Model class django.contrib.sessions ... - YouTube
Django ErrorModel class django.contrib.sessions. models.Session doesn't declare an explicit app_label and isn't in an application in ...
Read more >RuntimeError: Model class django.contrib.contenttypes. ...
models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Read more >Model class doesn't declare an explicit app_label and isn' ...
I am using sphinx and was trying to generate documentation for my Django project. I decided to first try to document the models...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the documentation is probably obsolete. Try to replace
'social.apps.django_app.default'
with'social_django'
in INSTALLED_APPS.It seems the docs are already up to date but the link to the new built documentation does not work for me. https://github.com/python-social-auth/social-docs