在Pycharm 17.1中运行Django [英] Running Django in Pycharm 17.1

查看:42
本文介绍了在Pycharm 17.1中运行Django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试新的Pycharm 17.1 Pro版本.我正在尝试运行Django 1.7项目.在Win 7的git-bash命令行中,我可以使用以下命令运行它:

I'm trying out the new Pycharm 17.1 Pro edition. I'm trying to run a Django 1.7 project. At the git-bash command line in Win 7, I can run it using:

$ python manage.py runserver

我不知道如何配置pycharm 1.7来做到这一点.我的设置的屏幕截图如上.

I can't figure out how to configure pycharm 1.7 to do this though. The screenshot of my setup is as above.

工作配置:

推荐答案

在您具有 runserver 的字段中编写:

In field where you have runserver write: http://127.0.0.1:8000/. Don' forget to enable Django support in Settings/Language&Frameworks/Django and set settings file, manage script and project root. Also make shure that you choose right Python interpreter(in Django server configuration) - the one which has installed Django. The easiest way to check if you have right interpreter chosen open: Settings/Project:ProjectName/Project Interpreter. It will list all installed packages for chosen interpreter.

这篇关于在Pycharm 17.1中运行Django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆