this is my project urls
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('', include('users.urls'))
]
and also this is my app URLs
urlpatterns = [
path("", views.home),
path("logout", views.logout_view)
]
I have this model (very simplified)
from django.db import models
class Author(models.Model):
user = models.CharField()
def __str__(self):
return self.user.first_name + ' ' + self.user.last_name
I am using the allauth
authentication and I want to do some more things other than creating the user when the user logged in from google
, for example.