prepare some django side for session auth