django-db-comments
django-db-comments copied to clipboard
LookupError with empty models.py file
- 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'.