Python Web development tool-Experiences in installing and using Django

Source: Internet
Author: User

In the past few days, it has been a painstaking effort to use this cute and hateful tip.

At the beginning, django was immediately fascinated by it-isn't that what I 've been looking? I have read all the basic chapters in the tutorial, such as views, models, and templates. Wow, God, it's so easy!

The Python version installed earlier is too high. Currently, django can only run on Python 2. x!

Wait until Python2.7 is installed, and then run pythonsetup. pyinstall. What? I installed it in version 3.3. Check the Path. In the default path, the 3.3 Path is in front of the 2.7 path. adjust it to my computer → properties → advanced → environment variables) then, the installation is successful.

The installation of PostgreSQL went smoothly. I was inspired to install its python driver-PyGreSQL. What? Turned off! Baidu spent half a day, trying for half a day, and finally downloaded an installation package to get it done. The installation package URL is:

Https://pypi.python.org/pypi/PyGreSQL/

I started to try the top hook, so I knew it was still the top hook! So much fun! Isn't it necessary to create a project directory first? In the command line status, switch to the directory where you want to create the project directory, run the pythondjango-admin.pystartproject <project directory NAME>, strange, why do you always say Nosuchfile? The path <Python directory> \ lib \ site-packages \ django \ bin is set correctly in both the path and pythonpath!

Fire! The absolute path of the file is directly provided in the command. Hey, this time, it's just! What is this about? Do I have to do this in the future? Speechless!

Finally, I found a. py file. Right-click and select "open mode", select "python", and select "always open in this way". OK. When you enter the command again, "python" is omitted!

Tips: You can write commands to batch files for easier debugging.

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.