django use authenticated user in models
<p>In django, I want to use the authenticated user in my models and I'm using allauth for authentication. In my model I have:</p>

<pre><code>created_by = models.ForeignKey(settings.AUTH_USER_MODEL)
</code></pre>

<p>I know now that I have to put something in my settings.py like :</p>

<pre><code>AUTH_USER_MODEL = 'auth.User'
</code></pre>

<p>But this is not working. What is the best way to handle this?</p>