Skip to content

Patrick

writing, drawing, surfing, painting

Menu

All posts in htmx

Creating a form with HTMX, Django

Posted on November 14, 2023November 15, 2023Author theptrkPosted in htmx

Step 1: Activate htmx (link) for django: Render a csrf token somewhere Step 2: Create the form with hx-post Case: Targeting a container div Case: Loading states extension (docs) Setup: import script, set style to avoid flash, add header Disable submit, add a loading indicator

  • Coding (10)
  • Command line (4)
  • databases (4)
    • postgresql (4)
  • Deployment (1)
    • heroku (1)
  • Dev Environments (1)
  • docker (2)
  • Finance (1)
  • git (2)
  • Github (2)
    • pages (1)
  • Hello World (1)
  • htmx (1)
  • iOS (5)
    • autolayout (1)
    • Core Animation (1)
      • CAShapeLayer (1)
    • project setup (1)
  • Javascript (13)
    • Browser API (1)
    • chrome extension (1)
    • express (2)
  • Mac (7)
  • Machine Learning (9)
    • Arc Prize (1)
    • LLM (3)
  • Me Database (1)
  • Obsidian (1)
  • OpenAI (2)
  • python (19)
    • django (2)
  • Rust (1)
  • Server-Client (1)
  • Shopify (1)
  • Swift (1)
  • Uncategorized (19)
  • Unix (10)
  • vim (5)

©2025 Patrick | Theme by SuperbThemes.Com