I all, Environment: - Django 1.5.1 - mongoengine 0.8.1
I use mongoengine to store and manage user accounts authentication. it work fine with the development server and uwsgi : only if I use a single process or thread mode. If i use more than 1 process, sometime ( when i refresh my application ), i am redirected on my login form. All my request must be authentified, i use a middleware to do this : from django.http import HttpResponse,HttpResponseRedirect > class AuthenticationMiddleware(object): > > _LOGIN_PATH = "/accounts/login_view/" > > def process_request(self, request): > if (request.path != self._LOGIN_PATH) and not request.is_ajax(): > if not request.user.is_authenticated(): > return HttpResponseRedirect( self._LOGIN_PATH+'?next=%s' % > request.path) > return None I think , there are unshared data between the processes who causes this problem. What do you think? Note : it works well with gunicorn Ch. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

