My django development environment (virtualenv + pip + django)

Source: Internet
Author: User
Document directory
  • Steps
  • Trouble Shooting
  • Package List
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

Previusly, 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.