now the template adapt depending of the data and tries ajax button without success
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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!")
|
||||
Reference in New Issue
Block a user