Django Admin - Administration Module - 08
Let's assign the models and create the superuser.
Let's assign the models and create the superuser.
The next step once the master template is registered is to register the models in Django admin so that we can manage them, that is, be able to create some example Data. So for that we start from what we have already done; we create the superuser:
$ python manage.py createsuperuser
We then proceed to register some models to be able to use Django Admin:
mystore\elements\admin.py
from django.contrib import admin
from .models import Element, Category, Type
# Register your models here.
admin.site.register(Element)
admin.site.register(Category)
admin.site.register(Type)
- Andrés Cruz
This material is part of my complete course and book; You can purchase them from the books and/or courses section, Curso y Libro desarrollo web con Django 5 y Python 3 + integración con Vue 3, Bootstrap y Alpine.js.
Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter
I agree to receive announcements of interest about this Blog.
!Courses from!
10$
On Udemy
There are 0d 05:36!
!Courses from!
4$
In Academy
View courses!Books from!
1$
View books