pycharm终端运行python文件_在PyCharm终端中执行python manage.py..._慕课问答

原来在DOS环境下需要先执行:  conda activate命令,然后再执行 python manage.py runserver就可以了。

如下:

D:\DjangoProject\django_introduction>conda activate

(base) D:\DjangoProject\django_introduction>python manage.py runserver

Performing system checks...

System check identified no issues (0 silenced).

You have 15 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run 'python manage.py migrate' to apply them.

April 08, 2020 - 11:39:34

Django version 2.1, using settings 'django_introduction.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.

你可能感兴趣的:(pycharm终端运行python文件_在PyCharm终端中执行python manage.py..._慕课问答)