Skip to content
Advertisement

Tag: django-custom-manager

TypeError: create_superuser() missing 1 required positional argument: ‘profile_picture’

I get the following error after adding the profile_picture field: This profile_picture field is an “ImageField” set as “Null = True”. I have tried the following: def create_user(…., profile_picture=None, ….). It didn’t work. and the error occurs only in command prompt when i create superuser from there. Here is my models.py Answer Well, you need to create the create_superuser function

Advertisement