← Django tutorial

Django

Introduction to Django

Django is a Python framework for building web applications, it comes with an ORM (database layer), an admin interface, a templating engine, and routing all built in, so you spend less time wiring things together and choosing between competing packages before you can even start. This entire site is a Django project, built with everything covered in this subject.

Example: starting a brand new project

django-admin startproject myproject
cd myproject
python manage.py runserver
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

Compare this to Flask's deliberately minimal starting point in the Flask subject, Django takes the opposite philosophy on purpose: give you a complete, opinionated structure from the very first command, so a team doesn't have to independently decide how to organize routing, templates, and database access on every new project.

Example
django-admin startproject myproject
cd myproject
python manage.py runserver
Output
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Ready to go further?

These free tutorials are a preview, our Backend Development cohort covers it in depth, with a real project and a cohort alongside you. Closes Nov 30

Enroll in Backend Development

Cookie preferences

Choose what you're comfortable with. You can change this any time from the footer.

Don't miss out

Ready to build something real?

Create a free account to enroll in a track, and get notified the moment a cohort opens.

Create free account