0Pricing
Django Academy · Lezione

django-admin startproject spiegato

Generi lo scheletro del progetto e legga ogni file

django-admin startproject spiegato è una lezione Django Academy gratuita su CoddyKit. Questa è la lezione 3 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Django Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Django Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Scaffold a Project

Django can generate a working project skeleton for you. The startproject command builds the folders and files you need to begin. 🏗️

django-admin startproject mysite

What Got Created

You now have an outer mysite folder holding manage.py plus an inner config package. That structure is the backbone of every Django app.

Meet manage.py

The manage.py file is your command center. You run servers, migrations, and admin tasks through it for the rest of the project.

The Inner Config Package

Inside sits a package named after your project. This config package holds the settings that wire everything together.

settings.py

The settings.py file controls your whole project: installed apps, the database, templates, and more, all in one Python module.

urls.py

The urls.py file maps incoming web addresses to your code. It is the front door that decides which view answers each request.

wsgi.py

The wsgi.py file is the entry point production servers use to talk to your app over the classic synchronous interface.

asgi.py

The asgi.py file is the modern async entry point. It supports websockets and long-lived connections beyond plain HTTP.

The Empty init File

An __init__.py marks the config folder as a Python package, so its modules can be imported across the project.

Avoid Nested Folder Confusion

Add a trailing dot to put config files in the current folder. This dot skips the extra wrapping directory many beginners trip over.

django-admin startproject mysite .

Name It Wisely

Pick a clear project name, since it becomes a Python package. Avoid names like django or test that clash with existing modules.

Quick Check

Let's check the generated files.

Recap

You scaffolded a project and toured its files: manage.py, settings, urls, wsgi, and asgi. The skeleton is ready to grow. 🎉

Domande Frequenti

La lezione «django-admin startproject spiegato» è gratuita?

Sì — il testo completo di «django-admin startproject spiegato» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Django Academy, passa a CoddyKit PRO. Il corso Django Academy include 4 lezioni in totale.

Cosa imparerò in «django-admin startproject spiegato»?

Generi lo scheletro del progetto e legga ogni file Eserciti Django Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Django Academy?

Non è richiesta alcuna esperienza precedente. Django Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 3 di 4.

Quanto tempo richiede la lezione «django-admin startproject spiegato»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Django Academy?

Sì. Ogni lezione Django Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Ambienti virtuali con venv
  2. pip install django e blocco delle versioni
  3. django-admin startproject spiegato
  4. Eseguire il server di sviluppo con runserver
← Torna a Django Academy