django-htmx-tailwind
django-htmx-tailwind copied to clipboard
Django + htmx + Tailwind CSS
Rapid Prototyping with Django, htmx, and Tailwind CSS
Want to learn how to build this?
Check out the post.
Want to use this project?
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate -
Install the dependencies:
(venv)$ pip install -r requirements.txt -
Configure Tailwind CSS:
(venv)$ tailwindcss -
Scan the emplates and generate CSS file:
(venv)$ tailwindcss -i ./static/src/main.css -o ./static/src/output.css --minify -
Apply the migrations and run the Django development server:
(venv)$ python manage.py migrate (venv)$ python manage.py runserver -
Test at http://localhost:8000/