TO CREATE A ADMIN USER USING FUNCTION BASED VIEWS
If you haven't already, create a Django project using the following command: django-admin startproject myproject
Create a Django app within your project using the following command: cd myproject python manage.py startapp myapp
In your app's views.py file (myapp/views.py), define a view function to create the users with the specified attributes.
Create Templates
In your app's urls.py file (myapp/urls.py), define a URL pattern to route to the create_users view.
Apply Migrations
Run the Development Server
Access the User Creation View
You can verify that the users have been created with the specified attributes by checking the Django admin interface.
Visit http://localhost:8000/admin/
The desired output is provided successfully.