title: Django distinguish between get / post in view's methods
body: <p>I've been working with other languages where I could simply have one method name (in controller) for one action (lets say login). For example in spring MVC I can have one method named 'login' and set method type (get or post) via annotation property.
  Is this possible in Django?
  For example, I have this method login:</p>
  
  <pre><code>def login(request):
      return render(request, 'login.html')
  </code></pre>
  
  <p>This method is accesed via GET, do I need to declare new method i.e login_post(request) for post accessing? or should i check if  request.POST['value'] is not empty in the first method, if it is not then it is POST, if it is empty then it should be GET. I am new to Django, how are your suggestions? thanks.</p>