Lookuperror: No installed app with label 'core'

Asked

Viewed 228 times

0

Initially the project used Django 1.7 but I am migrating it to Django 1.10.3, but when I try to use migrate it informs this error that 'core' is not installed, unfortunately there is no core application in my program ! the one thing with that name and a folder with some apps inside, and I just put it in their way, but I don’t think that’s accepted in Django 1.10.3, what would be the new method of doing that? or get rid of this mistake ?

Edit: Error

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 148, in get_app_config
    return self.app_configs[app_label]
KeyError: 'core'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)

  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 342, in execute
    self.check()
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 374, in check
    include_deployment_checks=include_deployment_checks,
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/migrate.py", line 62, in _run_checks
    issues.extend(super(Command, self)._run_checks(**kwargs))
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 361, in _run_checks
    return checks.run_checks(**kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/core/checks/registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/checks.py", line 16, in check_user_model
    cls = apps.get_model(settings.AUTH_USER_MODEL)
  File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 195, in get_model
    return self.get_app_config(app_label).get_model(model_name.lower())
  File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 155, in get_app_config
    raise LookupError(message)
LookupError: No installed app with label 'core'.

1 answer

0


You need to consult the documentation of version 1.10 has migrate (I believe not;. if so, try using SOUTH and see if it is compatible with version 1.10.

In case none of this of certain Voce will have to do the old way (Django before South/Migrate) the bank migration.

  • The problem is not in migrate but in the fact that something has changed in Django 1.10 and that thing has some connection with the core of Django itself, because there is no app of mine called core

  • Glue the mistake here for us see

  • Edited question with generated output

  • I was able to solve the problem, and basically it was an error of mine in the project settings where I was trying to access a user created by me with a different path, but thanks even for trying to help

Browser other questions tagged

You are not signed in. Login or sign up in order to post.