my django development environment (virtualenv+pip+django)

Steps

  • download and install Python
  • download and install setuptool, please choose right setuptool version which matches python version
  • make a virtualenv
    • > virtualenv yourenvname
  • install pip
    • > easy_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
posted @ 2010-05-13 00:11  观无明  阅读(586)  评论(0编辑  收藏  举报