I have the following settings:
The urls.py of the project's app:
urlpatterns = [
url(r'^main/', include('main.urls', namespace='main')),
]
The main app's urls.py:
urlpatterns = [
url(r'^add/$', views.add, name='add'),
]
I am trying to create an URL as /main/add/whatever/ in a template, hypothetically as follows:
<form method="POST" action="{% url 'main:add' %}" + "whatever/">
How do I do that?