title: Django Method Not Allowed (POST)
body: <p>In views:</p>
  
  <pre><code>def article_add(request):
      print request.user, " is adding an article"
      if request.method == "POST":
          web_url = request.POST['web_url']
          Uploadarticle(web_url)
          return redirect('myapp:index')
  </code></pre>
  
  <p>In html:</p>
  
  <pre><code>&lt;form class="navbar-form navbar-right" role="form" method="post" action="{% url 'myapp:article_add' %}" enctype="multipart/form-data"&gt;
  {% csrf_token %}
      &lt;div class="form-group"&gt;
          &lt;div class="col-sm-10"&gt;
          &lt;input id="article_url" name="web_url" type="text"&gt;
          &lt;/div&gt;
     &lt;/div&gt;
     &lt;button type="submit" class="btn btn-default"&gt; + &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In url.py:</p>
  
  <pre><code>app_name = 'myapp'
  urlpatterns = [
      url(r'^$', views.IndexView.as_view(), name='index'),
      url(r'^$', views.article_add, name='article_add'),
  ]
  </code></pre>
  
  <p>What i'm trying to do here is to pass the url value through html to view, call the function to upload the database, redirect the user to the same home page as refresh then the newly added item will show up. </p>
  
  <p>Somehow everytime I submit I got a blank page, in terminal I got an errors says: </p>
  
  <pre><code>Method Not Allowed (POST): /
  "POST / HTTP/1.1" 405 0
  </code></pre>