title: Getting two strings in variable from URL in Django
body: <p>I'm having some trouble sending along more than one variable to the view.</p>
  
  <p>my urls.py is as follows:</p>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^rss/(?P&lt;anything&gt;[^/]+)/$', 'rss.rssama.views.makerss', name='anything'),
      url(r'^$', 'rss.rssama.views.home'),    
  )
  </code></pre>
  
  <p>views.py </p>
  
  <pre><code>def maakrss(request, anything):
  </code></pre>
  
  <p>So now it takes from www.mydomain.com/rss/[anything]/ and sends 'anything' to my view. However I also want it to send along another string to views.py, like:</p>
  
  <p>www.mydomain.com/rss/[anynumber]/[anystring]/</p>
  
  <p>I tried this but that didn't work: </p>
  
  <pre><code>url(r'^rss/(?P&lt;anynumber&gt;[^/]+)/(?P&lt;anystring&gt;[^/]+)/$', 'rss.rssama.views.makerss', name='anynumber', name2='anystring'),
  </code></pre>
  
  <p>But this doesn't work, it gives this error: keyword argument repeated (urls.py, line 17)</p>
  
  <p><strong>So my question: How can I make it to give along two string from the url?</strong></p>