Django - Click on link won't redirect me to the page unless i right click and open in new tab
<p>I'm fairly new to django and I'm working on a project
for some reason clicking on my links won't redirect me to the desired page, nothing happens, but i cant open it bu right click > open in new tab
here is my template</p>

<p><strong>index.html:</strong></p>

<pre><code>&lt;ul class="list"&gt;
      {% for movie in all_movies %}
        &lt;li&gt;
          &lt;img src="{{ movie.poster }}" alt="" class="cover" /&gt;
          &lt;a href="{% url 'detail' movie.id %}"&gt;&lt;p class="title"&gt;{{ movie.title }}&lt;/p&gt;&lt;/a&gt;
          {% for genre in movie.genre.all %}
            &lt;p class="genre"&gt;{{ genre.genre }} | &lt;/p&gt;
          {% endfor %}
        &lt;/li&gt;
      {% endfor %}
&lt;/ul&gt;
</code></pre>

<p><strong>views.py :</strong></p>

<pre><code>def detail(request, movie_id):
   movie = get_object_or_404(Movie, pk=movie_id)
   return render(request, 'movies/detail.html', {'movie': movie})
</code></pre>

<p><strong>urls.py :</strong></p>

<pre><code>urlpatterns = [
   # /movies/
   url(r'^$', views.index, name='index'),
   # /movies/id/
   url(r'^(?P&lt;movie_id&gt;[0-9]+)/$', views.detail, name='detail'),
]
</code></pre>

<p>i can't find what's wrong with my code, any help would be appreciated!</p>

<p>This is most likely a JavaScript issue, this has nothing to do with Django. Your Django setup is working fine, I tested it is well.</p>

<p>There is an identical issue faced by someone else <a href="http://stackoverflow.com/questions/20724590/a-href-not-working">here</a>, and it was revealed that JavaScript was the actual issue.</p>

<p>I can't think of any other issues that may cause this.</p>

python django