Docker and Django - How to start fast
This article is a short introduction to Docker and Django, a productive stack that might help beginners and designers to start fast a new project. To make this article more useful, a short-list with open-source Django projects
configured to work on Docker is also provided. For newcomers, Django is a leading web framework coded in Python by programming experts and Docker is a popular virtualization platform used to deliver software much faster.
Thanks for reading! Topics covered by this article
- π Section #1 - Short introduction to Django
- π Section #2 - What is Docker
- π Section #3 - Docker CheatSheet
- π Section #4: Pre-configured Docker Projects (all free)
1# - Django Presentation
Django is a modern web framework crafted in Python language that provides modules and libraries for many common features required in modern web development. This amazing library is actively supported and versioned by programming experts and open-source enthusiasts using a batteries-included
concept. Here is a short list with features provided by Django out-of-the-box
:
- Session-based authentication, Social Login via Google, Apple .. etc.
Out-of-the-box
Admin Section with CRUD access for all tables- Abstract Database access via a powerful ORM
- Powerful built-in security patterns (CSRF, XSS)
- Helpers for almost anything:
forms
,data validation
- Administration module
- A powerful
command-line-interface
Django can be installed in many ways and the most recommended way is to use PIP, the official Python package manager. Here is the complete list with commands:
Step #1 - Create a virtual environment
Step #2 - Install Django via PIP, the official package manager for Python
Step #3 - Build a simple Django project
Step #4 - Start the project
Once all the above commands are executed, we should see in the browser the default Django splash screen when accessing http://localhost:8000
.
2# - What is Docker
According to the official documentation, Docker is virtualization software for developing, shipping, and running applications that provides a clear separation of applications from the infrastructure so we can deliver software much faster and reliable.
Basically, Docker provides a way to bundle web apps (and not only) into containers that are executable components built with applications source code and operating system libraries. Once the containers are bundled, Docker provides also a control layer that enables full control over the software: deploy, start, stop, restart and update containers using simple commands. For more information about Docker feel free to access:
- Docker overview - the official documentation
- What is Docker - comprehensive article provided by OSS.com
3# - Docker CheatSheet
This section is a short introduction
to the most used Docker commands.
Inspecting Docker Containers
Management Docker Commands
Image Transfer Commands
Miscellaneous Docker Commands
4# - Django and Docker Samples
With this minimal Django & Docker
introduction in mind we should be able to execute and understand how the samples are built and executed.
β¨ Argon Dashboard Django
Simple Django starter crafted on top of a popular Bootstrap 4 design: Argon Dashboard. Β Django codebase is crafted using a simple, modular structure that follows the best practices and provides authentication, database configuration, and deployment scripts for Docker.
- π Argon Dashboard Django - product page (contains DEMO & sources)
β¨Soft UI Dashboard Django
Designed for those who like bold elements and beautiful websites, Soft UI Dashboard is ready to help you create stunning websites and web apps. Soft UI Dashboard is built with over 70 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.
- π Soft UI Dashboard Django - product page (contains DEMO & sources)
β¨ Black Dashboard Django
Start your development with a modern, dark-themed Bootstrap 4 Admin template for Django. It features a huge number of components built to fit together and look fantastic. If you want to code faster, with a smooth workflow, then you should try this template carefully developed with Django. This template comes in dark mode for your app to keep up with trends. If you are not a dark-mode lover, no worries; this template comes in light mode, too.
- π Black Dashboard Django - product page (contains DEMO & sources)
β¨ Django Volt Bootstrap 5
Admin Dashboard generated by AppSeed in Django Framework. Volt Dashboard is a free and open-source
Bootstrap 5 Admin Dashboard featuring over 100 components, 11 example pages, and 3 plugins with Vanilla JS. There is more than 100 free Bootstrap 5 components included some of them being buttons, alerts, modals, date pickers, and so on.
- π Django Volt Bootstrap 5 - product page (contains DEMO & sources)
β¨ Material Dashboard Django
Start your development with a beautiful Material Admin template for Django. Material Dashboard makes use of light, surface, and movement. The general layout resembles sheets of paper following multiple different layers so that the depth and order are obvious. The navigation stays mainly on the left sidebar and the content is on the right inside the main panel.
- π Material Dashboard Django - product page (contains DEMO & sources)
Django codebase is crafted using a simple, modular structure that follows the best practices and provides authentication, database configuration, and deployment scripts for Docker, a popular virtualization software.
Thank you for reading! For more resources, please access:
- A curated index with more Django Templates provided by Creative Tim
- More Django Dashboards provided by App Generator Β