Im using Mongo Engine/REST Framework with Django 1.6.
All I need is for the client to get a sessionid when he hits one of the views. However at the moment no sessionid is present in the cookie.
views.py
@csrf_exempt
def updateInput(request):
return HttpResponse("view has been hit")
settings.py
MIDDLEWARE_CLASSES = Common.MIDDLEWARE_CLASSES + ('django.contrib.sessions.middleware.SessionMiddleware',)
INSTALLED_APPS += ('django.contrib.sessions',)
SESSION_ENGINE = 'mongoengine.django.sessions'
SESSION_SERIALIZER = 'mongoengine.django.sessions.BSONSerializer'
DJANGO_APPS = (
'django.contrib.sessions',
)
Any ideas ?