Skip to content
Advertisement

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

I get the following error after adding the profile_picture field:

JavaScript

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

JavaScript

Advertisement

Answer

Well, you need to create the create_superuser function as well:

JavaScript

Good Luck!

Advertisement