Base de conhecimento

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

Install Django

This guide concerns Django, an open-source web development framework in Python.

 

Prerequisites

  • A Cloud VPS or VPS Lite (shared hosting and Managed Cloud Server are not supported).
  • Python 3 and the pip package manager installed on the server, and full SSH access.
  • Master the command line interface (CLI Linux) and the management of Python virtual environments (e.g. venv).

 

Installation and initialization

Here are the general steps to set up your environment on your server:

  1. Connect to your VPS via SSH.
  2. Create and activate a virtual environment to isolate your project's dependencies:
    python3 -m venv my_environment && source my_environment/bin/activate
  3. Install the framework:
    pip install django
  4. Initialize your project:
    django-admin startproject name_of_project

 

Deployment

The built-in development server (runserver) is not designed for a production environment. To securely expose your application on the Internet, configure an application server (e.g., 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?