Answer the question
In order to leave comments, you need to log in
How to handle click on submit?
Good afternoon.
There are two urls:
url(r'^test/', generate_url),
url(r'^(?P<hash>\w+)/$', load_url, name="url"),
url(r'^$', TemplateView.as_view(template_name='index.html'), name='index'),
Answer the question
In order to leave comments, you need to log in
Add name to urls:
In template:<a href="{% url 'generate_url' %}">Клик</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question