0Pricing
Django Academy · Lesson

django-admin startproject Explained

Generate the project skeleton and read each file.

django-admin startproject Explained is a free Django Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Django Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

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. 🎉

Frequently asked questions

Is the “django-admin startproject Explained” lesson free?

Yes — the full text of “django-admin startproject Explained” is free to read here on the web, and the Django Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Django Academy course, upgrade to CoddyKit PRO.

What will I learn in “django-admin startproject Explained”?

Generate the project skeleton and read each file. You practise Django Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Django Academy?

No prior experience is required. Django Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “django-admin startproject Explained” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Django Academy lesson?

Yes. Every Django Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Virtual Environments with venv
  2. pip install django and Pinning Versions
  3. django-admin startproject Explained
  4. Run the Dev Server with runserver
← Back to Django Academy