How to register models on django / admin panel || Django admin panel
HTML-код
- Опубликовано: 9 сен 2024
- How to register models on django / admin panel....
1) Firstly go to the your models.py and create your models (Table)
2) Go to the admin.py and register there your models name (admin.site.register)
3) go to the terminal - New terminal and do migration
python manage.py makemigrations after migrations
Do migrate
python manage.py migrate then run your server
python manage.py runserver ( for run server )