Getting the following error while executing the next line of command
from django.contrib.sessions.models import Session
session = Session.objects.get(pk=session_key)
Mistake:
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
Follow the next steps for the file settings.py http://docs.mongoengine.org/en/latest/django.html
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.dummy',
},
}
SESSION_ENGINE = 'mongoengine.django.sessions'
source
share