SyntaxStudy
Sign Up
Django Beginner 8 min read

Introduction to Django

Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. It follows the Model-View-Template (MVT) architectural pattern and includes everything you need: ORM, authentication, admin interface, forms, and more — all built-in.

Django was created at a newspaper company and follows the "batteries included" philosophy.

Example
# Create a new Django project
# pip install django
# django-admin startproject mysite
# cd mysite
# python manage.py startapp blog

# mysite/settings.py - register your app
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'blog',  # your app
]

# Run development server
# python manage.py runserver
# Visit: http://127.0.0.1:8000/