0

I've already made lots of search but couldn't find the appropriate answer to my question.

Is it possible to submit form from template in admin panel? I have a template like this:

{% block content %}
{% load static %}

<form action="find_tr" method="POST">
    {% csrf_token %}

    Enter url: <input type="text" name="url"><br><br>
    
    <input type="submit">
</form>

{% endblock %}

I can submit it from template itself but , what i want is to make it possible through admin panel.

For now it looks like this:

enter image description here

The same should be possible from admin panel: enter image description here

Is there any way to achieve it?

Vagner
  • 383
  • 2
  • 10
  • Does this answer your question? [Add custom page to django admin without a model](https://stackoverflow.com/questions/41423711/add-custom-page-to-django-admin-without-a-model) – Bjorn Jan 30 '22 at 17:37
  • it doesn't look like the optimal solution. Is there any other solution for it? – Vagner Jan 30 '22 at 17:43
  • Can't you just click "Add Tournament" in the top right corner? – Josh Jan 31 '22 at 01:54

0 Answers0