django login_required defaults request.LANGUAGE_CODE to default language in settings
<p><strong>login_required</strong> decorator sets <strong>request.LANGUAGE_CODE</strong> to default language that has been set in <strong>settings.py</strong>. How can I bypass this behavior ?</p>

<p>thanks!  </p>

<p>I had this issue in the past and found that setting your LOGIN_URL in the settings file to use reverse_lazy works:</p>

<pre><code>LOGIN_URL = reverse_lazy('log_in')
</code></pre>

python django