---
title: "Come distribuire Django"
version: 6.0
locale: it
source: https://docs.djangoproject.com/it/6.0/howto/deployment/
canonical: https://djangodocs.dev/it/6.0/howto/deployment/
---
# Come distribuire Django

Django è pieno di scorciatoie per rendere più semplice la vita degli sviluppatori ma questi strumenti sono inutili se non puoi fare facilmente deploy dei tuoi siti. Dall’avvento di Django, la facilità di deploy è stato un obiettivo fondamentale.

Ci sono molte opzioni per fare deploy della tua applicazione Django, basate sulle tue architetture o i tuoi bisogni di business, ma questa discussione va oltre lo scopo di quel che Django può darti in termini di guida.

Django, being a web framework, needs a web server in order to operate. And
since most web servers don’t natively speak Python, we need an interface to
make that communication happen. The [`runserver`](/it/6.0/ref/django-admin/#django-admin-runserver) command starts a
lightweight development server, which is not suitable for production.

Django attualmente supporta due interfacce: WSGI e ASGI.

- WSGI\`\_ è lo standard Python per la comunicazione tra web server ed applicazioni ma supporta solo codice sincrono.
- [ASGI](https://asgi.readthedocs.io/en/latest/) è il nuovo standard asyncronous-friendly che permetterà al tuo sito Django di usare le feature asincrone di Python e le caratteristiche asincrone di Django man mano che vengono sviluppate.

Dovresti anche considerare a come gestirai i [file statici](/it/6.0/howto/static-files/deployment/) per la tua applicazione e come gestirai [il report degli errori](/it/6.0/howto/error-reporting/).

Finally, before you deploy your application to production, you should run
through our [deployment checklist](/it/6.0/howto/deployment/checklist/) to ensure
that your configurations are suitable.

- [Come distribuire con WSGI.](/it/6.0/howto/deployment/wsgi/)

  - [Come installare Django con Gunicorn](/it/6.0/howto/deployment/wsgi/gunicorn/)
  - [Come usare Django con uWSGI](/it/6.0/howto/deployment/wsgi/uwsgi/)
  - [Come usare Django con Apache e `mod_wsgi`](/it/6.0/howto/deployment/wsgi/modwsgi/)
  - [Come autenticare da Apache verso il database utenti di Django](/it/6.0/howto/deployment/wsgi/apache-auth/)
  - [L’oggetto `application`](/it/6.0/howto/deployment/wsgi/#the-application-object)
  - [Configura il modulo settings](/it/6.0/howto/deployment/wsgi/#configuring-the-settings-module)
  - [Applicare il middleware WSGI](/it/6.0/howto/deployment/wsgi/#applying-wsgi-middleware)
- [Come distribuire con ASGI.](/it/6.0/howto/deployment/asgi/)

  - [Come usare Django con Daphne](/it/6.0/howto/deployment/asgi/daphne/)
  - [Come utilizzare Django con Hypercorn](/it/6.0/howto/deployment/asgi/hypercorn/)
  - [Come utilizzare Django con Uvicorn](/it/6.0/howto/deployment/asgi/uvicorn/)
  - [L’oggetto `application`](/it/6.0/howto/deployment/asgi/#the-application-object)
  - [Configura il modulo settings](/it/6.0/howto/deployment/asgi/#configuring-the-settings-module)
  - [Caricare il middleware ASGI](/it/6.0/howto/deployment/asgi/#applying-asgi-middleware)
- [Lista dei controlli per la distribuzione](/it/6.0/howto/deployment/checklist/)

  - [Lancia `manage.py check --deploy`](/it/6.0/howto/deployment/checklist/#run-manage-py-check-deploy)
  - [Switch away from `manage.py runserver`](/it/6.0/howto/deployment/checklist/#switch-away-from-manage-py-runserver)
  - [Configurazioni critiche](/it/6.0/howto/deployment/checklist/#critical-settings)
  - [Configurazione dipendente dall’ambiente](/it/6.0/howto/deployment/checklist/#environment-specific-settings)
  - [HTTPS](/it/6.0/howto/deployment/checklist/#https)
  - [Ottimizzazione delle prestazioni](/it/6.0/howto/deployment/checklist/#performance-optimizations)
  - [Segnalazione errore](/it/6.0/howto/deployment/checklist/#error-reporting)
