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.