简体   繁体   English

如何从python idle运行django?

[英]How to run django from python idle?

I know there are several softwares for Django like Pycharm,etc. 我知道有几种适用于Django的软件,例如Pycharm等。 But I want to know can I run a webpage created by Django from Python IDLE. 但是我想知道我是否可以运行由Django从Python IDLE创建的网页。 Is there any way if there is please help me. 有什么办法可以的请帮助我。

Django is a web framework. Django是一个Web框架。 you can not compile it, you can just write the code and then the browser will show the page you designed. 您不能编译它,您可以编写代码,然后浏览器将显示您设计的页面。 you can use Atom or Sublimetext for this purpose.test 您可以为此目的使用Atom或Sublimetext。

IDLE and pycharm are development tools. IDLE和pycharm是开发工具。 When you run the code as webpage, you shouldn't use them. 当您将代码作为网页运行时,不应使用它们。

In particular -- idle is an editor for one file at a time, while pycharm is better for project development. 特别是-idle是一次只编辑一个文件的编辑器,而pycharm更适合于项目开发。

Any way, you can use any text editor for editing the python files. 无论如何,您都可以使用任何文本编辑器来编辑python文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM