Django Review NOTE 1: Environment configuration

Source: Internet
Author: User

I. Environmental construction

1.requirements.txt

django==1.7Pillow= =2.9. 0

2. Check the Django version

(venv) SH-3.2pwd/users/LSF (venv)sh-3.2# CD code/(venv) SH-3.2"import Django;print (Django.get_version ())"  1.7

Here's a "python-c" command, which allows Python's notorious whitespace to be freed. Someone used to think that if Python was used on the front end, it didn't know how much bandwidth to waste. But if you can execute the script with this command, you can actually compress the script. In addition, sublime installs the Python code of the component, executes is uses the python-c.

Django Review NOTE 1: Environment configuration

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.