bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Django

Django

Django Syntax

This chapter works through Django Template Variables, the anchor topic behind Django Syntax.

Lesson 1

Django Template Variables

In Django templates, you can render variables by putting them inside {{ }} brackets:

Read lesson →Loading…
Lesson 2

Django Template Tags

In Django templates, you can perform programming logic like executing if statements and for loops.

Read lesson →Loading…
Lesson 3

Django if Tag

An if statement evaluates a variable and executes a block of code if the value is true.

Read lesson →Loading…
Lesson 4

Django for Tag

A for loop is used for iterating over a sequence, like looping over items in an array, a list, or a dictionary.

Read lesson →Loading…
Lesson 5

Django comment Tag

Comments allows you to have sections of code that should be ignored.

Read lesson →Loading…
Lesson 6

Django include Tag

The include tag allows you to include a template inside the current template.

Read lesson →Loading…

Django chapters

All
1. Django Tutorial2. Display Data3. Admin4. Django Syntax5. QuerySets6. Static Files7. PostgreSQL8. Deploy Django9. More Django