Install pyramid and create a project in linux

Source: Internet
Author: User
This article briefly introduces how to install pyramid and create a project in linux. For more information, see use 1. install python virtual environment.

The code is as follows:


Virtualenv -- no-site-packages env

2. install pyramid

The code is as follows:


$ Env/bin/easy_install pyramid

3. use the alchemy template to create a project

The code is as follows:


Pcreate-s alchemy MyProject

4. install project dependencies

The code is as follows:


Python setup. py develop

5. run the unit test

The code is as follows:


Python setup. py test-q

6. install the initialization database script

The code is as follows:


Env/bin/initialize _ [projectname] _ db development. ini

7. start the website

The code is as follows:


Pserve development. ini -- reload

Related Article

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.