title: When tested http POST with chrome POSTMAN, it doesn't work in django
body: <p>I use <code>Django 1.9.7 &amp; Python 3.5</code></p>
  
  <p>I implement creating user mechanism and tried to test with POSTMAN(chrome application), but it doesn't work and it shows something like belows:</p>
  
  <pre><code>Forbidden (CSRF cookie not set.): /timeline/user/create/
  </code></pre>
  
  <p>This is the code :</p>
  
  <p><code>urls.py</code></p>
  
  <pre><code>from django.conf.urls import url
  From. import views
  
  app_name = 'timeline'
  urlpatterns = [
      # ex) /
      url(r'^$', views.timeline_view, name='timeline_view'),
  
      # ex) /user/create
      url(r'^user/(?P&lt;method&gt;create)/$', views.user_view, name='user_view'),
  ]
  </code></pre>
  
  <p><code>views.py</code></p>
  
  <pre><code>from django.contrib.auth import authenticate, login, logout
  from django.shortcuts import render, HttpResponse
  
  from timeline.models import *
  
  
  def timeline_view(request):
      return HttpResponse('hello world')
  
  
  def user_view(request, method):
      if method == 'create' and request.method == 'POST':
          print("hi")
          username = request.POST.get('username')
          username = request.POST.get('username')
          user = User.objects.create_user(username, password=password)
          user.first_name = request.POST.get('name','')
          user.save()
          profile = UserProfile()
          profile.user = user
          profile.save()
          return HttpResponse('create success')
      else:
          return HttpResponse('bad request', status=400)
  </code></pre>
  
  <p><code>POSTMAN</code> :
  <a href="https://i.stack.imgur.com/DhV2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DhV2D.png" alt="enter image description here"></a></p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/17716624/django-csrf-cookie-not-set">Django CSRF Cookie Not Set</a> but I think this post is for past version.</p>