Django can easily be installed on a Linux, Mac, or Windows server. The only prerequisite is that Python 2.3 or higher must already be installed. You can find information about installing Python at http://www.python.org/download/.
An SQL database isn't required to install Django. However, you will want to install one before you begin creating Django projects. You may need to install additional Python modules to support the database, depending on which database you choose. Django supports the MySQL, Postgre SQL, SQLite3, Oracle, and Microsoft SQL database backends. In this book, the examples will be based on the MySQL database.
At this time, you can install Django in two different ways. You can install an official release, or you can download the development version. To download the development version, you will need to install the Subversion version control system from the following website:
http://subversion.tigris.org/
The folks at the Django project are making a lot of great changes all the time, so you may want to use the development version if you want to implement the latest feature set. However, if you are developing a production website, you will want to use the released version.
Django should typically be installed in the site-packages directory of the Python installation. For example, if Python is installed in /Python25, then Django would be installed in the following location:
/Python25/Lib/site-packages/django
The following "Try It Yourself" sections take you through the steps of installing Django using each of these methods.
By the Way
Some Linux distributions now provide versions of Django integrated with their package management system. You can find a list of those third parties at the following URL:
Try It Yourself: Install the Development Version of DjangoThis section describes the steps to install the development version of Django. Follow these steps to download and install the Django tarball file:
|