エラー django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
エラー内容
python manage.py shell >>> from blog.models import Post >>> Post.objects.all() 省略 django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
解決方法
<アプリ名>/setting.pyの一部を以下のようにコメントアウト
# DATABASES['default'] = dj_database_url.config()↲
そして、migrate
python manage.py migrate
したところ解決
しかし、なぜ解決したかはまだわからない。これから調査を行う。
一応メモ