Posts

Which command is used to create a superuser in Django?

Image
  Overview We do not create a separate “Admin” page or provide an authentication feature because Django provides an “Admin” panel for its users. Which command is used to create a superuser in Django . Furthermore, we must migrate to our project before using this feature; otherwise, we will not be able to create a database of superusers. Simple steps to follow We can create a  superuser  by writing the following command: python3 manage . py createsuperuser We then write the following credentials step by step. We can fill these credentials according to our preferences: Username:  testAdminUser Email address:  test@gmail.com Password: ******** Password (again): ******** Note : After filling a row, press “Enter” to fill the other information. Now the superuser will be created if we have entered all fields correctly. Creation of superuser Django’s “Hello World” application A sample “Hello World” Django application is given below. We can follow the given ste...