Home > Mobile >  Django models does not create table after I clone it on github
Django models does not create table after I clone it on github

Time:12-31

Recently I'm doing a small Django project that I have to work with my teammates, so I clone the project's repository from github. The problem is , the database in my computer doesn't have the table so i think i have to makemigrations and migrate it. But after i did that,django only createed its own tables but didn't create other tables that my teammates wrote in Django's models. I really need your guys hlep

this are the models my teammates wrote

but after i makemigrations and migrate it ,phpmyadmin does not show the tables i want makemigrations and migrate

the picture on phpmyadmin after I migrate django models

This is my settings

after tried this,it still not working

migrations folder

CodePudding user response:

You should use managed=True in all models for managing the migrations via django

CodePudding user response:

run

python manage.py makemigrations *name_of_you_app_that_has_models_here*
python manage.py migrate *name_of_you_app_that_has_models_here*
  • Related