Category : django-registration

I was trying to create registration form but once I saved then I was getting mentioned error i.e. ‘Manager isn’t available ‘auth.User’ has been swapped for ‘User.User”. I went through some solutions as well provided over the Internet even then I couldn’t able to apply the required solution as I’m novice in coding world. I’m ..

Read more

I am trying to register users using django rest framework but this is the error i am getting, Please help Identify the issue TypeError at /api/register/ ‘module’ object is not callable Request Method: POST Request URL: http://127.0.0.1:8000/api/register/ Django Version: 3.1.5 Exception Type: TypeError Exception Value: ‘module’ object is not callable Exception Location: C:UsersbenPycharmProjectsbuddyroolibsite-packagesrest_frameworkgenerics.py, line 110, ..

Read more

I would like the user name field for my Django registration to populate with the following function – def generateUsername(): username = firstname[0] + middlename[0] + lastname[0] + randomStringDigits(6) + getDateTimeStr() return username I am currently using the UserRegisterForm model from Django and would prefer to find away to integrate into this, however if the ..

Read more

I’m quite new with Django but now I’m working on a project that needs a universal user registration and after that create a second form to save some other profile fields based on usertype. I have create this: model.py # Create your models here. class User(AbstractBaseUser, PermissionsMixin): USER_CHOICES = ( (‘galerist’, ‘GALERISTA’), (‘collector’, ‘COLLECTOR’), (‘artist’, ..

Read more

I’m using the two step account activation in django-registration and I get this error when I run the server. I’m also using a custom user created from AbstractBaseUser. The user model automatically sets the email field by student_id. forms.py from django_registration.forms import RegistrationForm from .models import StudentUser class StudentUserRegisterForm(RegistrationForm): class Meta(RegistrationForm.Meta): model = StudentUser in ..

Read more

Not sure how to name this problem, let me elaborate. I have very old django project, been migrating it since django 1.5 or so. It has always had class Member, extending User and has been practically used as authentication model for the app. AUTH_USER_MODEL was never changed, however SOCIAL_AUTH_USER_MODEL is set to custom auth model ..

Read more