2013年5月26日

创建基于pypy的virtualenv虚拟环境

摘要: 1、首先安装pypy官网:http://pypy.org/下载的1.9的,下载完成之后用tar xf 文件名,解压缩。复制pypy-1.9到~/.local/目录下。在local的bin(如果没有的话,可以自己新建一个bin)下建立一个软链接:ln -s ~/.local/pypy-1.9/bin/pypy ~/.local/bin/到此并没有结束,你还需要配置环境变量,在用户的家目录下的.bashrc中添加:export PATH=$PATH:~/.local/bin/,就是把刚才的bin目录放到环境变量中。<br> 执行:source .bashrc,重新加载下环境配置。最后在 阅读全文

posted @ 2013-05-26 21:50 hellopython 阅读(467) 评论(0) 推荐(0) 编辑

2013年5月25日

Tutorial: Deploy Django app on AppFog

摘要: AppFog is PaaS provider which make management of code a little easier. There are bunch of PasS providers out there Heroku, Elastic Beanstalk to name a few. I tried Googling easy to use tutorial for de... 阅读全文

posted @ 2013-05-25 21:52 hellopython 阅读(293) 评论(0) 推荐(0) 编辑

2013年5月24日

virtualenv的基本使用方法

摘要: virtualenv is a tool to create isolated Python environments. 简单的说就是在系统里面单独建立了个python环境,当前开发所需的package都会建在virtualenv建立的目录下.不会影响其它python环境. 1.安装virtualenv 我使用的是Ubuntu 12.04,我进入https://pypi.python.org... 阅读全文

posted @ 2013-05-24 23:26 hellopython 阅读(542) 评论(0) 推荐(0) 编辑

2013年5月23日

利用Django编写简单的Blog(八)

摘要: 接上节:http://www.cnblogs.com/hellopython/archive/2013/05/22/3093606.html实习分类目录功能修改models.py为from django.db import modelsfrom django.contrib.auth.models import User# Create your models here. class Category(models.Model): title = models.CharField(max_length=200) slug = models.SlugField(max_length=... 阅读全文

posted @ 2013-05-23 22:37 hellopython 阅读(242) 评论(0) 推荐(0) 编辑

2013年5月22日

利用Django编写简单的Blog(七)

摘要: 接上节:http://www.cnblogs.com/hellopython/archive/2013/05/22/3093538.html 实现模板的可移植性 阅读全文

posted @ 2013-05-22 21:25 hellopython 阅读(128) 评论(0) 推荐(0) 编辑

利用Django编写简单的Blog(六)

摘要: 接上节: http://www.cnblogs.com/hellopython/archive/2013/05/22/3093525.html 本节为了实现 flat pages功能 python manage.py syncdb 阅读全文

posted @ 2013-05-22 20:59 hellopython 阅读(113) 评论(0) 推荐(0) 编辑

利用Django编写简单的Blog(五)

摘要: 接上节:http://www.cnblogs.com/hellopython/archive/2013/05/21/3091765.html 本节的目标是能够多人发布. 还是利用Django的自带功能扩展,首先编辑views.py python manage.py syncdb python manage.py shell 接着编辑 posts.html 启动服... 阅读全文

posted @ 2013-05-22 20:23 hellopython 阅读(112) 评论(0) 推荐(0) 编辑

2013年5月21日

利用Django编写简单的Blog(四)

摘要: 接上节:http://www.cnblogs.com/hellopython/archive/2013/05/20/3089293.html 前面三节已经完成简单博客的基本功能,这一节为了实现以下目标, 修改日志URL的结构, 开始吧. 首先是学习下python的交互功能 Ctrl D 回到命令行,打开blogengine下面的models... 阅读全文

posted @ 2013-05-21 22:22 hellopython 阅读(130) 评论(0) 推荐(0) 编辑

Python + PIP + Django + Virtualenv

摘要: For a more through post you probably read this document, this guide was partially based on it, taking what I find relevant for my usecase:http://www.cnblogs.com/hellopython/archive/2013/05/21/3089784.htmlI'm posting this for my own references and if anyone else finds it useful, all the better. I 阅读全文

posted @ 2013-05-21 21:17 hellopython 阅读(300) 评论(0) 推荐(0) 编辑

Beginners Guide : pip and virtualenv

摘要: RequirementsI will be basing this tutorial on the setup I have at home. So for the best results using this guide I would recommend using Ubuntu 10.10. I will try and keep the instruction as generic as possible. Overall goal will be to introduce you to the magic of pip and virtualenv.Install easy_ins 阅读全文

posted @ 2013-05-21 21:13 hellopython 阅读(390) 评论(0) 推荐(0) 编辑

导航