How to install Django

Source: Internet
Author: User
Tags svn update install django
================================ How to install Django ================= =====: author: Django team: Translator: weizhong2004@gmail.com. install Python ================== as a Python web framework, Django needs python. django requires Python 2.3 or later. you can download python from www.python.org. if you are using Linux or Mac OS X, Python may have been installed in the system. install Apache and mod_python ========================== if you just want to experience Django, skip this step. django comes with a Web server for development purposes. if you plan to use Django on a commercial site, we recommend that you use Apache installed with 'mod _ python. mod_python is similar to mod_perl -- it is embedded with the python interpreter in Apache. When the server is started Code Load them to the memory. as long as the Apache process exists, the Python code remains in the memory, which greatly improves the performance. make sure that you have installed Apache and activated the mod_python module. django requires Apache 2.x and mod_python 3. x. refer to 'How to run Django with mod_python '_ to learn how to configure mod_python after installation. if you cannot use mod_python for some reason, don't worry: Django follows the wsgi _ Standard, which allows it to run on multiple server platforms. refer to 'server-arrangements wiki page' _ to learn specific installation instructions for each platform... _ Apache: http://httpd.apache.org /.. _ mod_python: http://www.modpython.org /.. _ wsgi: http :/ /Www.python.org/peps/pep-0333.html .. _ How to Run Django with mod_python: http://www.djangoproject.com/documentation/modpython .. _ server-arrangements wiki page: used Django database API. You need a running database server. django supports PostgreSQL _ (recommended), MySQL _, and SQLite _. in addition, make sure that your python database binding (module) has been installed. * If you use PostgreSQL, you need to install psycopg _ packag E (Version 1.1 -- cannot be 1.0 or 2.0 ). if you are a Windows platform, download the unofficial 'compiled windows version '_. * If you use MySQL, you need mysqldb _. * If you use SQLite, you need pysqlite _. version 2.0.3 or later is required... _ PostgreSQL: http://www.postgresql.org /.. _ MYSQL: http://www.mysql.com /.. _ Django's ticket system: http://code.djangoproject.com/report/1 .. _ psycopg: http://initd.org/projects/psycopg1 .. _ compiled windows: http://stickpeople.com/projects/python/win-psycopg /.. _ Mysqldb: http://sourceforge.net/projects/mysql-python .. _ SQLite: http://www.sqlite.org /.. _ pysqlite: http://initd.org/tracker/pysqliteinstall Django code ====================== the officially released version is slightly different from the development version installation instructions. however, either of them is quite simple. install the officially released version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. download Django-0.91.tar.gz from 'Download page. 2. ''tar xzvf Django-0.91.tar.gz ''3. ''cd Django-0.91 ''4. ''sudo Python setup. PY install ''note that the last command will automatically download and install setuptools _ (if it is not installed in your system ). this requires that you have an available Internet connection during installation. this will install Django in the ''site-packages ''directory installed in your python... _ setuptools: Upload ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. install subversion _. 2. ''svn Co http://code.djangoproject.com/svn/django/trunk/ django_src ''' 3. symbol connection ''django _ src/Django ''so that ''django'' is located in the ''site-packages ''directory installed in your python: ''ln-s 'pwd'/django_src/Django/usr/lib/python2.3/Site-packages/Django ''(Note: Do not copy the code, modify ''python2. 3 ''.) you do not need to execute ''python setup. PY install ''. when you need to upgrade your code, run the 'svn Update' command in the ''django _ src' directory... _ 'Download page': http://www.djangoproject.com/download .. _ Subversion: http://subversion.tigris.org/

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.