An example app for showing simple ajax calls using htmx in django templates. No API required.
create the virtual env
pipenv sync
pipenv shell
setup the local database
python manage.py migrate
run the local server
python manage.py runserver
open http://localhost:8000/ in your browser.
Thanks to Muhammed Ali @khabdrick for their blog post which was used as inspiration for this demo https://www.section.io/engineering-education/how-to-build-templates-for-django-applications-with-htmx/