1. 程式人生 > >Django 有關資料庫幾個命令

Django 有關資料庫幾個命令

建立project:
django-admin.pystartprojectmyproject
建立APP:
python manage.py startapp myapp
啟動server:
python manage.py runserver
python manage.py runserver 0.0.0.0:80

python manage.py makemigrations

python manage.py migrate

python manage.py runserver 0.0.0.0:8000

python manage.py createsuperuser