django-db-comments icon indicating copy to clipboard operation
django-db-comments copied to clipboard

LookupError with empty models.py file

Open whymewhynot opened this issue 3 years ago • 0 comments

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

whymewhynot avatar Aug 15 '22 16:08 whymewhynot