Skip to content

LookupError with empty models.py file #18

@whymewhynot

Description

@whymewhynot
  • Django Db Comments version: 0.3.1
  • Django version: 2.2
  • Python version: 3.7
  • Operating System: Ubuntu 20.04

Description

If the file models.py is empty in your app directory, migrations fail with LookupError. If you delete the file, the error disappears.

What I Did

python manage.py startapp newapp

Leave models.py empty and add 'newapp' to your INSTALLED_APPS.

python manage.py migrate

LookupError: No installed app with label 'newapp'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions