Utilities

Automate Django-Tailwind setup

Author Photo

Mikael Eklund

· 1 min read
Thumbnail

I have a Django build that I use both at work and for private use with all my preferences. But still there are times when one just want to start a new project. Common for my resent project are Django, Tailwind, Flowbite, Whitenoise, Alpine js and Htmx. Setting up a new project manually does include a lot of steps. The more steps the bigger chance that something differ between setups. I prefer not to use compress, instead I use Whitenoise that works better for me in a Nginx/Gunicorn setup. And that it also works in the devserver. I use Htmx a lot and have started to use Alpine js. I have created a small script that install all the extras and configures Django. This way you get all the latest versions. If there would be any problems you can always use a requirements.txt to install earlier versions.

https://github.com/psgandalf/django-quick-setup

#django#tailwind#alpinejs#alpine.js#htmx#whitenoise#flowbite
Author Photo

About Mikael Eklund

Mikael Eklund is a Senior it technology specialist. With a passion for technology and programming.