title: NoReverseMatch Error on Server
body: <p>I'm using Django 1.11, and python 2.7.
  I've been stuck for hours now on an error I can't find its origin.</p>
  
  <p>The error is:</p>
  
  <pre><code>Internal Server Error: /
  NoReverseMatch at /
  Reverse for 'show_news' with arguments '()' and keyword arguments '{}' not found. 1 pattern(s) tried: ['general/show_news/(?P&lt;news_id&gt;\\d+)/$']
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>def list_news(request):
      news_items = NewsItem.objects.all().order_by('-submission_date')
      return render(request, 'general/news_list.html', {'news_items': news_items})
  
  def show_newsitem(request, news_id):
      news_item = get_object_or_404(NewsItem, pk=news_id)
      return render(request, 'general/news_item.html', {'news_item': news_item})
  </code></pre>
  
  <p>My news_list.html template:</p>
  
  <pre><code>{% block content %}
  {% if news_items %}
      {% for i in news_items %}
      &lt;div onclick="location.href='{% url 'show_news' news_id=i.pk %}'"&gt;
      &lt;div class="panel panel-default"&gt;
          &lt;div class="panel-heading"&gt;{{ i.title }}&lt;/div&gt;
          &lt;div class="panel-body"&gt;{{ i.body|truncatewords:20 }}
              &lt;img height="100px" align="left" src="{{i.picture.url}}" alt="here"&gt;
          &lt;/div&gt;
          &lt;div class="panel-footer"&gt;{{ i.submission_date }}&lt;/div&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      {% endfor %}
  {% endif %}
  {% endblock %}
  </code></pre>
  
  <p>My urls -sorry, I was in a hurry and it slipped my mind-:</p>
  
  <pre><code>from general import views as general_views
  
  urlpatterns = [
      ...
      url(r'^show_news/(?P&lt;news_id&gt;\d+)/$', general_views.show_newsitem, name='show_news'),
  ]
  </code></pre>
  
  <p>Locally, everything works just fine, but on the server, nothing works!
  I'm really stuck. Please help.
  Thank you in advance.</p>