Hey Tim,

Thanks for the hint, You are right the culprit was the *"*
django_zappa.middleware.ZappaMiddleware*"   *Its working fine without this 
middleware but I require this middleware (Django Zappa) 
<https://github.com/Miserlou/django-zappa> as for AWS lambda which provides 
me serverless hosting. 

Please let me know if you know something about this middleware.

Thanks,
Abdul Wahid

On Tuesday, 14 February 2017 03:57:16 UTC+5:30, Tim Graham wrote:
>
> Can you create a minimal project that reproduces the problem? It seems 
> like something in the request/response cycle (middleware maybe?) is 
> effectively logging you out on each request.
>
> On Monday, February 13, 2017 at 5:07:09 PM UTC-5, Abdul Wahid wrote:
>>
>> Hi Everyone,
>>
>> Since last two nights, I am struggling a lot to resolve the issue as my 
>> Django admin section keeps redirecting to login page repeatedly.
>> I had tried every corner solution to resolve the issue, but failed to 
>> resolve it. 
>>
>> Finally I am writing here in some hope that someone who already had the 
>> similar issue would help me to resolve it.
>>
>> So I am using Django 1.9.4 and when I logged into admin section then its 
>> seems to be fine but when I reload the page or click on some button then it 
>> redirect me to login page, As per my investigation I found that I am 
>> getting 302 for *"admin/jsi18n"* see the below screenshot..
>>
>>
>> <https://lh3.googleusercontent.com/-xYJDt8C3BlE/WKIYEefVjYI/AAAAAAAAA2A/6N7KqVF5InIZgOeKvOg75Hgofn_ZnJ3XgCLcB/s1600/Screen%2BShot%2B2017-02-14%2Bat%2B2.02.39%2Bam.png>
>>
>> Below is the screenshot after reloading the above mentioned page..
>>
>>
>> <https://lh3.googleusercontent.com/-REdYTaQFzdc/WKIYlk1cpZI/AAAAAAAAA2E/0X2LNS4_dzUQ-xTNiz30McOmodtuzAdMgCLcB/s1600/Screen%2BShot%2B2017-02-14%2Bat%2B2.05.16%2Bam.png>
>>
>>
>>
>> I would really appreciate the help to resolve the issue and I need to 
>> move for production asap.
>>
>>
>> Thanks,
>>
>> Abdul Wahid 
>>
>>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f3b3436a-f206-4c96-8dd2-01446774975b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to