Answers for "how to run script to populate database in django faker"

0

how to run script to populate database in django faker

first you need to do python manage.py migrate

and then respectively python manage.py makemigrations

then give some suggestion like that... AccessRecort change to AccessRecord [y/N]? press y

then python mange.py migrate

Operations to perform: Apply all migrations: admin, auth, contenttypes, first_app, sessions Running migrations: Applying first_app.0002_auto_20190731_1445... OK

(MyDjangoEnv) C:\your\file\path\first_project>python populate_first_app.py
Posted by: Guest on September-30-2020

Code answers related to "how to run script to populate database in django faker"

Python Answers by Framework

Browse Popular Code Answers by Language