Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

required_fields = []

REQUIRED_FIELDS = ['name', 'username', 'email', 'password']

Specifies the fields to be asked in console when you run following command:-
                   "python manage.py createsuperuser"

Helpful in creating custom User Models in django.
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+8 =