Django: Manager isn’t available; ‘auth.User’ has been swapped for ‘userauths.CustomUser’
I’m working on a Django project and encountering an issue when trying to sign up a new vendor. The error message I’m getting is:
I’m not being able to create users in my django application through the registration form that I created
I can create users through the manage.py shell, but not through the registration form, when I click the submit button, it just reloads the page and nothing else happens, also, my vs code is underscoring the create_user function in the line “user = Account.objects.create_user(…”, it says “Cannot access attribute “create_user” for class “BaseManager[Account]””
Django Multi-Tenant App shows site cannot be reached when using tenant
I am making a login system using django with multitenant.
how to create a foreign key from the top model to bottom model?
Hello everyone!:) I just started django and this is my problem class Model1(models.Model): x = models.ForeignKey(Model2, on_delete=models.CASCADE) class Model2(models.Model): y = models.CharField(max_length=200) I wanna know how to create a foreignkey to Model2 from Model1? How can I do it? I know maybe you say you just need to replace Model1 with Model2 and then create […]