I am trying to send data from my web page to urlpattern in Django and then to the view. I know that I can include a dict in my urlpattern path that will be sent to my view:
path("edit_page", views.edit_article, {'article':'fake_text'}, name="edit_page")
I want to send the dict directly from my webpage. I have been trying:
urls.py
path("edit_page", views.edit_article, name="edit_page")
html
<a href='{% url 'edit_page' {'article': 'article_test'} %}'>Edit</a>
Where am I going wrong?