Tutorials References Exercises Sign Up Menu
Create Website Get Certified Pro

Django Tutorial

[+:

Django is a back-end server side web framework.

Django is free, open source and written in Python.

Django makes it easier to build web pages using Python.

Start learning Django now ❯

Learning by Doing

In this tutorial you get a step by step guide on how to install and create a Django project. You will learn how to create a project where you can add, read, update or delete data.

You will learn how to make HTML Templates and use Django Template Tags to insert data within a HTML document.

You will learn how to work with QuerySets to extract, filter, and sort data from the database.

You will also learn how to set up a PostgreSQL database and how to deploy your Django project to the world.


Django Exercises

Test Yourself With Exercises

Exercise:

Insert the missing parts to write a Django variable in a template:

<h1>Hello  firstname , how are you?</h1>

Start the Exercise


Django Quiz

Learn by taking a quiz! The quiz will give you a signal of how much you know about Django.

Start Django Quiz


Learning by Examples

In the tutorial we will use examples to better explain the various concepts.

Example

<ul>
  {% for x in mymembers %}
    <li>{{ x.firstname }}</li>
  {% endfor %}
</ul>
Run Example »

My Learning

Track your progress with the free "My Learning" program here at W3Schools.

Log in to your account, and start earning points!

This is an optional feature. You can study W3Schools without using My Learning.



Learning by References

You will also find references over the most common Django features: