title: How to send text by template via url in Django?
body: <p>I want to send text to a view via template. I have two different types of clients that will be processed differently, to take advantage of code I put it in a single view and the specific part treated it with an <code>if else</code>.</p>
  <p>In the template:</p>
  <pre><code>&lt;a href=&quot;{% url 'client' 'prime' %}&quot;&gt; Client prime &lt;/a&gt;
  &lt;a href=&quot;{% url 'client' 'free' %}&quot;&gt; Client &lt;/a&gt;
  </code></pre>
  <p>In the urls.py</p>
  <pre><code>....
  path('client/&lt;str:typeclient&gt;', Client, name='client'),
  .....
  </code></pre>
  <p>In the view:</p>
  <pre><code>def Client(request, typeclient):
      ...
      if typeclient == &quot;prime&quot;:
         ...
      else:
        ....
  </code></pre>
  <p>However I get the following error:</p>
  <pre><code>NoReverseMatch at /
  
  Reverse for 'client' with no arguments not found. 1 pattern(s) tried: ['client\\/(?P&lt;typeclient&gt;[^/]+)$']
  </code></pre>
  <p>Apparently the text is not passing as a parameter that I inserted in the url.</p>
  <p>In this sense, how can I pass a text from the template via url?</p>