Frontend
Dynamic formsets with Alpine.js
How to dynamically add and remove forms in django formsets with Alpine.js
Floating labels for select fields
How to create floating labels for select fields
Loading spinners
How to create loading spinners with htmx and tailwindcss
Select dropdown with search
How to crate a select dropdown with a search field to filter options
Floating labels with Tailwindcss
How to create floating labels with Tailwindcss
Include tailwindcss in a Django project
How to include tailwindcss in a Django project with django-tailwind and automatically run both npm and runserver during development
Enhance your forms with Alpine.js
How to prefill forms with data from the local storage
Django and HTMX
How to create a form wizard with Django and HTMX, without saving any intermediate data to the database or session
Running in Production
Automate deployment with Ansible
How to automate provisioning of a remote host and deployment with Ansible
Deploy a Django app on a VM (manually)
All manual steps required to transfer the code on the remote host and set up a systemd service that executes your Django application
Manage background processes with Supervisor or Systemd
How to run your Django application as a background process
Gunicorn from scratch
How to run your Django application through a WSGI server like Gunicorn
Set up a VirtualBox VM
How to run a virtual host locally to test your automatic provisioning
Development
Simulate an S3 Bucket locally with LocalStack
How to create an S3 bucket locally and connect it to a Django application
How to set up a Django project
How to start a Django project the right way
Databases
Postgres
Open source relational database with a lot of features and a big community. It is well supported by Django and has a lot of tools and packages around it.
SQLite in production
SQLite can handle concurrent writes, it is easy to set up, and can be backed up easily to S3 with Litestream
Security
https://
How to create my own certificates and serve over https
Know your tools
Debugging with VSCode
How to debug a python application in VSCode