my django development environment (virtualenv+pip+django)
观无明
·
2010-05-13
·
via 博客园 - 观无明
Steps
- download and install Python
- download and install setuptool, please choose right setuptool version which matches python version
- make a virtualenv
- install pip
- make a requirement file, a file indicates packages required by your virtual environment, save it to requirement.txt and put it in directory yourenvname
django-pagination
django-registration
Django
South
flup
- install packages required
- yourenvname> pip install –r requirement.txt
- start your django project and django application
- yourenvname> django-admin.py startproject yourprojectname
- yourprojectname> django-admin.py mange.py yourappname
- yourprojectname>python mange.py syncdb
Trouble Shooting
<></>
Action Error Solution
run django-admin.py Type 'django-admin.py help' for usage Modify registry of file association:
"C:\Python25\python.exe" "%1" %*
Package List
Previously, some packages I recommend are listed in requirement file. Forget about my recommendation, you can have any package you want in it. Here is description for some package.
Name Description
django-registration This application enables a common user-registration workflow: registration with a email
Various methods of extending and customizing the registration process are also provided.
django-pagination A set of utilities for creating robust pagination tools throughout a django application.
South South, likes migration of Ruby on Rails, is a tool to provide consistent, easy-to-use and database-agnostic migrations for Django applications.
flup Make your django web site support FastCGI, SCGI and AJP and work with nginx, apache and lighttpd
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。