Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LookupError with empty models.py file #18

Open
whymewhynot opened this issue Aug 15, 2022 · 0 comments
Open

LookupError with empty models.py file #18

whymewhynot opened this issue Aug 15, 2022 · 0 comments

Comments

@whymewhynot
Copy link

  • 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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant