Django ARTICLE

History of Django

Django image
Designed by: Adrian Holovaty and Simon Willison

Django was created in 2003 by Python programmers Adrian Holovaty and Simon Willison when they were working at the Lawrence Journal-World newspaper. Python is one of the most popular programming languages today, and Django is a tool used by Python developers to facilitate the web development process. Read on to learn how Django helps developers create bespoke and fully customisable websites for clients.

Django Introduction

What is Django?

Templates

        
          {% extends "base_generic.html" %}

          {% block title %}{{ section.title }}{% endblock %}

          {% block content %}
          <h1>{{ section.title }}</h1>

          {% for story in story_list %}
          <h2>
          <a href="{{ story.get_absolute_url }}">
          {{ story.headline|upper }}
          </a>
          </h2>
          <p>{{ story.tease|truncatewords:"100" }}</p>
          {% endfor %}
          {% endblock %}
        
      

Variables

        
          My first name is {{ first_name }}. My last name is {{ last_name }}.
        
      
        
          My first name is John. My last name is Doe.
        
      

Tags

        
          {% csrf_token %}
        
      
        
          {% cycle 'odd' 'even' %}
        
      
        
          {% if user.is_authenticated %}Hello, {{ user.username }}.{% endif %}