django命令

django命令

  • django-admin startproject
  • python manage.py startapp
  • python manage.py makemigrations
  • python manage.py migrate
  • python manage.py runserver
  • python manage.py createsuperuser

admin的使用admin.py

  • admin.site.register(模型类.admin类)

你可能感兴趣的:(django命令)