Create Superuser in Django


  • Python
  • Django
    • 4
    • IN
    • Verified
    • Posted byPRAVEEN KUMAR
    • TimeMarch 18, 2022, 5:42 p.m.
    • StatusActive

    Snippet Description

    Superuser create in Django.

    Code

       Creating an admin user

      First, we’ll need to create a user who can log in to the admin site. Run the following command:

      python3 manage.py createsuperuser

       Enter your desired username and press enter.

      Username: admin
      Email address: xxxx@sample.com
      Password: **********
      Password (again): *********
      Superuser created successfully.

    Comments

    Related Posts

    PWADHWA

    Send SMS using Django-Python

    Python Django

    2 Aug. 14, 2022, 4:32 p.m.
    Proud

    Create Superuser in Django

    Python Django

    4 March 18, 2022, 5:42 p.m.
    PPPP

    Want to Hire our experts?

    We'll help you to grow your career and growth.
    SignUp Today