Base de conhecimento

1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!

Install Django

Atualização 11/06/2026

This guide concerns Django, an open-source web development framework in Python, particularly renowned for its robustness and rapid development capabilities.

 

Installing Django

Prerequisites

  • Suitable hosting:
    • Deploying a Python application requires an application server running continuously; standard shared web hosting is not suitable.
    • Full server access via SSH is required.
  • Technical environment:
    • Python 3 installed on the server, as well as the pip package manager.
  • Basic knowledge:
    • Familiarity with the command-line interface (CLI) under Linux and the management of Python virtual environments (such as venv).

Here are the general steps to initialize your environment on your server:

It is necessary to install Django on web offers guaranteeing full control over the execution environment, such as Cloud VPS / VPS Lite: discover the different web hosting options from Infomaniak.

  1. Connect to your VPS server via SSH.
  2. Create and activate a virtual environment dedicated to your project to isolate your dependencies (e.g., python3 -m venv my_environment then source my_environment/bin/activate).
  3. Install the framework using the package manager: pip install django.
  4. Initialize your new project with the command: django-admin startproject name_of_project.

 

Deployment

Please note that the development server integrated into Django (launched via runserver) is not designed for a production environment. To securely expose your site on the internet on your Infomaniak VPS, you will need to configure an application server (such as Gunicorn or uWSGI) behind a reverse proxy (such as Nginx or Apache).

Link para esta FAQ: https://faq.infomaniak.com/516


Esta seção de perguntas frequentes foi útil?