2014年9月27日

Django 资源文件配置

摘要: staticfiles: 这是一个静态资源管理的app,django.contrib.staticfiles。老的版本中,静态资源管理一直是一个问题,部分app发布的时候 需要带上静态资源,在部署的时候必须将每个app存在的static静态资源复制到同一个static目录。引入staticfiles... 阅读全文

posted @ 2014-09-27 21:42 数学之道 阅读(314) 评论(0) 推荐(0) 编辑

ubuntu 部署Django

摘要: 1, 安装python包管理工具easy_install。sudo apt-get install python-setuptools2,安装Django。 sudo easy_install "django==1.6"3,安装C/C++库和编译器。 sudo apt-getinstall gc... 阅读全文

posted @ 2014-09-27 14:25 数学之道 阅读(316) 评论(0) 推荐(0) 编辑

导航