Skip to content

Test demo to show how to integrate django with htmx

Notifications You must be signed in to change notification settings

hernantz/django-htmx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Application

This project was extracted from the demo app in the django-htmx app.

It adds the preload + hx-boost extension and the Nprogress plugin to show the loading indicator for all ajax requests.

Install

python -m venv venv
source venv/bin/activate
python -m pip install -U pip
python -m pip install -r requirements.txt
DEBUG=1 python manage.py runserver

Open it at http://127.0.0.1:8000/ .

Browse the individual examples, and take them apart!

In your browser’s devtools, you can read the htmx debug log in your browser’s console, and see the requests made in the network tab. In the source code, check out the HTML comments via “view source” or templates, and the view code in example/core/views.py.

About

Test demo to show how to integrate django with htmx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published