django 创建项目异常 django-admin.py is deprecated in favor of django-admin.

操作

  • 创建django项目
django-admin.py startproject learning_log

异常信息

F:\sdk\python\Python37\Scripts\django-admin.py:19: RemovedInDjango40Warning: django-admin.py is deprecated in favor of django-admin.
  RemovedInDjango40Warning,

分析原因

RemovedInDjango40Warning: django-admin.py is deprecated in favor of django-admin.
RemovedInDjango40Warning警告:django-admin.py 过时了,取而代之的是 django-admin

解决方法

django-admin startproject learning_log