skip to Main Content

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

2

Answers


  1. 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*
    
    Login or Signup to reply.
  2. You should use managed=True in all models for managing the migrations via django

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search