Skip to content

Commit

Permalink
[#6] Setup HTMX.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Aug 7, 2024
1 parent c2f7797 commit 1907299
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions audioapp/templates/audioapp/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE html>
<html>
<head>
{% load static %}
<script src="{% static 'js/htmx.min.js' %}" defer></script>
{% tailwind_css %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
Expand Down
Binary file added media/.DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion shortaudio/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'audioapp.apps.AudioappConfig',
'tailwind',
'theme',
"django_htmx",
]

MIDDLEWARE = [
Expand All @@ -53,6 +54,7 @@
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
"allauth.account.middleware.AccountMiddleware",
"django_htmx.middleware.HtmxMiddleware",
]

ROOT_URLCONF = 'shortaudio.urls'
Expand Down Expand Up @@ -130,7 +132,7 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/

STATIC_URL = 'static/'
STATIC_URL = [BASE_DIR / "static"]

# Default primary key field type
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
Expand Down
1 change: 1 addition & 0 deletions static/js/htmx.min.js

Large diffs are not rendered by default.

0 comments on commit 1907299

Please sign in to comment.