How can i overwrite the createsuperuser.py script in django (1.3.1) ?
I’d like to add something in def handle in Command class after:
u = User.objects.create_superuser(username, email, password)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Maybe it would work for you to connect a post_save signal as such:
Of course that would also be executed if a superuser is created from the admin.