Monday, 20 March 2023

Issue while trying to run data script in django

I have already checked this post but of no use for me.

'module' object is not callable Django

from auth_app.models import UserModel
from django.contrib.auth.hashers import make_password

def UserData(apps, schema):
    UserModel(
        username="gargonlinejobs", 
        email_address="gargonlinejobs@gmail.com", 
        is_active=1, 
        password=make_password("12345aA!")
    ).save();

Error Message: TypeError: 'module' object is not callable



from Issue while trying to run data script in django

No comments:

Post a Comment