Nuestra base de conocimientos sólo está disponible actualmente en inglés. Estamos en el proceso de traducir estas páginas y las publicaremos cuando estén disponibles.
How to install Django using the A2 QuickInstaller
This article describes how to use the A2 QuickInstaller to install Django on your system.
The A2 QuickInstaller is no longer supported, and is only available on older VPS hosting packages. On newer VPS hosting packages, you can use Webuzo
to quickly and easily install a wide range of applications and manage your server.
To check if the A2 QuickInstaller supports this application for your Linux distribution, please see this article
To install Django, follow these steps:
- Use SSH to log in to your system as the root user.
To use the A2 QuickInstaller, you must log in as the root user using SSH. You cannot use the serial console in the VPS Control Panel to run the A2 QuickInstaller.
- To start the A2 QuickInstaller, type the following command, and then press ENTER:
- Under Application Installers, type the option number for Frameworks, and then press ENTER.
- On the Framework Menu, type the option number for Django, and then press ENTER. The A2 QuickInstaller updates your system, and then begins the installation process.
The installation process takes some time to complete. Do not interrupt the installation process.
- When installation is complete, the A2 QuickInstaller displays basic configuration information for the Django installation.
Verifying the Django installation
To verify that Django installed correctly on your system:
- At the command line, type the following command and then press ENTER:
The Python shell starts.
From the Python shell, type the following commands:
The Python shell displays the Django version that is installed on your system.
Creating a test project
To create a test Django project, follow these steps:
- Create a default configuration for the project. To do this, type one of the following commands at the command line:
- If you are using CentOS, type:
django-admin.py startproject test_project
If you are using Fedora or Ubuntu, type:
django-admin startproject test_project
There is now a directory named test_project in the current directory. The following files are in the test_project directory:
To start the development server, type the following commands at the command line:
python manage.py runserver
The development server runs on port 8000 at 127.0.0.1 (localhost).
To view the project, log in to your system in a separate shell session, and then type the following command:
You should see the following text:
Welcome to Django
- Application Servers
You can use the A2 QuickInstaller to install a wide variety of application servers with just a few keystrokes. You can install a LAMP stack, nginx, and more.
- Ruby on Rails
You can use the A2 QuickInstaller to install Ruby on Rails 3 on your system.
Meteor is an open source framework for developing web sites. Learn how to install it using the A2 QuickInstaller here.