Integrate django-htmx into project: update settings, middleware, and base HTML with HTMX utilities.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% load tailwind_tags %}
|
||||
{% load static %}
|
||||
{% load avatar %}
|
||||
{% load django_htmx %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
@@ -23,6 +24,7 @@
|
||||
<link href="{% static "css/brands.css" %}" rel="stylesheet"/>
|
||||
|
||||
{% tailwind_css %}
|
||||
{% htmx_script %}
|
||||
|
||||
<style>
|
||||
.navbar-shrink {
|
||||
@@ -37,7 +39,7 @@
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="flex flex-col h-screen">
|
||||
<body class="flex flex-col h-screen" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
||||
<!-- NAVBAR -->
|
||||
<header id="mainNavbar" class="navbar-normal navbar bg-base-100 sticky top-0 z-50 shadow">
|
||||
<div class="flex-none lg:hidden">
|
||||
|
||||
Reference in New Issue
Block a user