If you are new to the Django template, here you start with Django admin and how to create a user.
Django Admin is a fantastic feature within Django, serving as a user-friendly interface for managing your models, allowing you to create, read, update, and delete data effortlessly.
python manage.py runserver
http://127.0.0.1:8000/
, simply append '/admin' after it, resulting in http://127.0.0.1:8000/admin.
config/urls.py
file.from django.contrib import admin
urlpatterns = [
path("admin/", admin.site.urls),
...
]
In order to access the admin application, we must first create a user
python manage.py createsuperuser
Username:
Email address: johndoe@dummymail.com
Password:
Password (again):
## This password is too short. It must contain at least 8 characters.
## This password is too common.
## This password is entirely numeric.
Bypass password validation and create user anyway? [y/N]:
Superuser created successfully.
y
to skip past these alerts.