django-admin startproject test1
python manage.py startapp test2
change setting on DB
python manage.py inspectdb >test2/models.py
python manage.py makemigrations
python manage.py migrate
django-admin startproject test1
python manage.py startapp test2
change setting on DB
python manage.py inspectdb >test2/models.py
python manage.py makemigrations
python manage.py migrate
转载于:https://www.cnblogs.com/pythonClub/p/9744722.html