What to do if you accidently delete the admin user in a django project?

Django logo
Django logo (Photo credit: Wikipedia)
Have you ever wondered what to do if you accidently delete the admin user in a django project? That's a nasty problem in appearance, but not too serious in practice: Django provides a command line utility to solve that kind of problems:

manage.py createsuperuser --username=joe --email=joe@example.com


Share:

No comments:

Post a Comment