Skip to content

MattSegal/django-htmx-list-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django + htmx list view

This repo demonstrates how to use htmx for a paginated, searchable list view in Django:

This repo is a part of this tutorial video. View a quick video demo here

I've also made an introduction to HTMX video here.

Setup

Follow these instructions to try this demo out locally. This requires Python 3 and the pip package manager.

# Create virtual environment
python -m venv env

# Activate virtual environment (Bash for Linux or Mac)
. env/bin/activate

# Activate virtual environment (cmd / PowerShell for Windows)
./env/Scripts/activate

# Install requirements
pip install -r requirements.txt

# Go into the Django application folder
cd app

# Setup database.
./manage.py migrate

# Setup test data.
./manage.py setup_test_data

# Run the development server.
./manage.py runserver

# Now you can view the project at http://localhost:8000

About

Using HTMX to create a dynamic list view with Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published