Files
Django_kube/django_code/cloudmanager/views.py
T
2026-03-31 00:25:56 +01:00

9 lines
310 B
Python

from django.http import HttpResponse
def trigger_my_action(request):
# 1. Run your Django module/function
result = "1"
print('here')
# 2. Return ONLY the HTML fragment you want to show on the page
# This will replace the content inside the "hx-target" div
return HttpResponse("Done!")