django's introductory book has been read the second time, and the environment is still awkward. The last time I saw a little confidence in the database, this encounter is high. I just want to stick to it. The good memory is not as bad as the bad one, let alone I am still a bad memory. Or a solid record.
Developing a web project with python I chose the django framework, how to make python and Django runs on my own machine? We step by step: (PS: window has installed mysql database, python2.5.4 version, django1.02 version.)
Environmental building
First we download these files: python2.5.4 django1.02 mysql-python
python2.5.4 and mysql-python are executable files, just install it (of course python first). After completion In order to facilitate the use of our configuration environment variables, add the python directory path to the path variable (cite).
Set python and django environment variables
Now we need to install django. Will be downloaded Unzip the archive to any directory:
django extract to any directory
Open the command prompt (cmd), enter the directory. And type the command as shown below:
python setup.py install install djangoAfter the carriage return is executed, you will see the process of installing django. After the completion, you can delete the extracted directory.
You also need to add django-admin.py to the environment variable, as shown above. The first picture is shown.
So we will install django.How to get started
The environment is not doing anything, but it doesn’t really have much sense of accomplishment. Let's take a sense of accomplishment, create a new project with django and run it up:
First we open cmd, locate the directory where you want to create a new project, any directory can be. Then type the following command:
< PRE>django-admin.py startproject hellowhere hello is the name of the new project directory file. After confirming the implementation, django creates a new project for us. The hello folder contains the django framework related files and default configuration files. Don't care about its details first.
Next we will locate the path of cmd to the hello directory. The following command:
python manage.py runserverYou will see the following output:
Django server successfully openedOpen the browser, visit: http://127.0. 0.1:8000/. Haha~ We succeeded It worked!
This server is just a test lightweight server built into django and can't be used in production environment.
When viewing the IIS website access log, it is found that the time recorded in the IIS log is incorr
Sendmail server simple configuration First, sendmail introduction Second, Sendmail installation step
The Web server is built on the line, and it can carry large amount of traffic, res
Problem Description The R525 G2 machine serial port interface is in the form
Thin provisioning technology solves the problem of wasted disk space
Tomcat startup error in linux: java.net.BindException: Permission denied :80
How to solve the storage problem in server virtualization?
Zend Optimizer configuration instructions in php.ini
Play classic games under Linux system CS1.5 server setup
IIS optimization - use eAccelerator to accelerate PHP
Fourteen common faults and analysis of the server
IIS Sound Application Pool Settings
Unable to run ASP program under IIS
Three tips to help you effectively reduce data center energy consumption
Graphical installation of IIS7 in Vista and configuration of ASP environment
The role of the Linux system pwd command
How does Win10 prohibit IE11 browser from automatically updating and installing new version
Solving the problem of NTLDR file loss
Windows Blue has entered the MP preview development phase
Computer version of the book to add subtitles to the picture
XP system built-in variable values how to customize
How to view the computer name in win7 64-bit system In order to cope with an operation
Win7 open the folder but enter the search interface solution
Win10 upgrade 10159 version failed how to solve?
Have you tried it? Win8 you may not know a few new ways to play (1)