how to run script to populate database in django faker

Solutions on MaxInterview for how to run script to populate database in django faker by the best coders in the world

showing results for - "how to run script to populate database in django faker"
Archer
25 May 2016
1first you need to do python manage.py migrate
2
3and then respectively python manage.py makemigrations
4
5then give some suggestion like that... AccessRecort change to AccessRecord [y/N]? press y
6
7then python mange.py migrate
8
9Operations to perform: Apply all migrations: admin, auth, contenttypes, first_app, sessions Running migrations: Applying first_app.0002_auto_20190731_1445... OK
10
11(MyDjangoEnv) C:\your\file\path\first_project>python populate_first_app.py