- Fullstack Engineer @Arbormoon
- @dougwlance
- Writing Python for ~14 years
- Building Django apps for ~5 years
Django is a web framework for building web-based applications using Python.
- Created at a newspaper company
- Named after Django Reinhardt
- First released July 21, 2005
- Version 3.0 released December 2019
- Easy to use
- Batteries-included
- Well documented
- Django Admin
- Open-source
- Secure
- Strong ecosystem
- Great ORM system
- Mozilla
- Disqus
- National Geographic
- Many others: 47k stars on GitHub
- Install Python 3 (help)
- Setup a virtual environment
pip install virtualenv
virtualenv venv
source venv/bin/activate
- Install Django with pip:
pip install Django==3.0.2
- Start a new Django project:
django-admin startproject $PROJECT_NAME
- Start a new Django app:
python manage.py startapp $APP_NAME
- manage.py
- settings.py
- MVC
- Models
- Views
- Templates
- URLs
- Tests
- Models
- Views
- Templates
- URLs
- Tests