There are many different web frameworks under Python. Django is the most representative of the heavyweight players. Many successful websites and apps are based on Django.

Django is an open source web application framework written in Python.

Django template syntax

A template is a text that separates the presentation and content of a document.

Django template example

...TEMPLATES = [
    {         'BACKEND': 'django.template.backends.django.DjangoTemplates',        
                    'DIRS': [BASE_DIR+"/templates",],       # 修改位置
                'APP_DIRS': True,        'OPTIONS': {            
                    'context_processors': [
              'django.template.context_processors.debug',                
                    'django.template.context_processors.request',                
                    'django.contrib.auth.context_processors.auth',                
                    'django.contrib.messages.context_processors.messages',            ],
        },
    },]...