In django, I want to use the authenticated user in my models and I'm using allauth for authentication. In my model I have:
created_by = models.ForeignKey(settings.AUTH_USER_MODEL)
I know now that I have to put something in my settings.py like :
AUTH_USER_MODEL = 'auth.User'
But this is not working. What is the best way to handle this?