You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
models.py line 315
`if settings.DATABASES[connection]['ENGINE'] in ('django_mongodb_engine',):`
can throw a KeyError if the project configuration does not follow
Django docs guidelines for setup
Legacy projects can potentially have a working Django app set up like this:
```python
DATABASES = {
'default': dj_config_url.config(env='DATABASE_URL'),
'alternative': dj_config_url.config(env='ALTERNATIVE_DATABASE_URL'),
}
```
Considering that during a migration for simple_history, models.py
checks for a key that does not exist, an exception is thrown that
prevents the project from running.
0 commit comments