现在的位置: 首页 > 综合 > 正文

django book笔记–问题1(python manage.py shell)

2016年02月25日 ⁄ 综合 ⁄ 共 511字 ⁄ 字号 评论关闭

 之前我没有接触过django这一类的web构架,现在需要用django开发东西,在网上查了很多资料觉得还是django book很适合做参考入门资料。

英文版:http://www.djangobook.com/en/2.0/index.html

中文版:http://docs.30c.org/djangobook2/

我的笔记记录的是在学习django book的过程中遇到的一些问题。


遇到的第一个问题:

Chapter 4: Templates

From the mysite project
directory created by 
django-admin.py startproject (as covered in Chapter
2), type
python manage.py shell to start the
interactive interpreter.


运行python manage.py shell的时候出错,没有找到出错原因,找到了解决办法。


在manage.py目录下新建一个文件,保存为xxx.bat,


文件内容为:

set
DJANGO_SETTINGS_MODULE=settings

python

保存,然后双击运行该文件就OK了。

抱歉!评论已关闭.