title: Django URL: Multiple URL, same views. Then use {% url %} in template
body: <p>I need 2 URLs to show the exact same view and URL patterns, so in my main urls.py file, I do this:</p>
  
  <pre><code>url(r'^evenements/', include('project.events.urls', namespace='events')),
  url(r'^tourisme/evenements/', include('project.events.urls', namespace="tourisme_event", app_name='events')),
  </code></pre>
  
  <p>And then in my events app, I have this in the urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^$', views.listing, name='index'),
      url(r'^(?P&lt;slug&gt;.*)/$', views.detail, name='detail'),
  )
  </code></pre>
  
  <p>Now what I'm trying to achieve is to show the exact same view for both the URLs, but I need the links to work with this in the template:</p>
  
  <pre><code>{% url 'events:detail' event.event.slug %}
  </code></pre>
  
  <p>To my understanding, using "app_name" should allow me to do just that, but here are the different things that happen:</p>
  
  <ul>
  <li>app_name only on "tourisme/evenements": both pages show the "tourisme/evenements" URL with the <code>{% url %}</code> tag</li>
  <li>app_name on both: both pages show the "evenements" URL with the <code>{% url %}</code> tag</li>
  <li>app_name on neither: both pages show the "evenements" URL with the <code>{% url %}</code> tag</li>
  </ul>
  
  <p>I can't get it to show a different URL on both pages. I did what was told in this answer: <a href="https://stackoverflow.com/a/8039846/2174532">https://stackoverflow.com/a/8039846/2174532</a></p>
  
  <p>Any idea why that wouldn't work? BTW, I'm on Django 1.6.</p>
  
  <p>Thanks</p>