title: How does "return render(request, 'path/path')" works in Django?
body: <p>Please explain how "return render(request, 'path/path')" this works step by step in any particular views.py file in django.</p>
  
  <p>MYcode: (views.py)</p>
  
  <pre><code>from django.shortcuts import render
  from basic_app.forms import UserForm,UserProfileInfoForm
  from . import forms
  
  def index(request):
      return render(request,'basic_app/index.html')
  
  def register(request):
      registered=False
      if request.method=="POST":
          profile_form=UserProfileInfoForm(data=request.POST)
          user_form=UserForm(data=request.POST)
          if profile_form.is_valid() and user_form.is_valid():
  
              user=user_form.save()
              user.set_password(user.password)
              user.save()
  
              profile=profile_form.save(commit=False) 
              profile.user=user
  
              if 'profile_pic' in request.FILES:
                  profile.profile_pic=request.FILES['profile_pic']
  
              profile.save()
              registered=True
          else:
              print(user_form.errors,profile_form.errors)
  
      else:
          user_form = UserForm()
          profile_form = UserProfileInfoForm()
  
  
      return render(request,'basic_app/registration.html',
                      {'user_form':user_form,
                      'profile_form':profile_form,
                      'registered':registered})
  </code></pre>
  
  <p>Code: (registration.html)</p>
  
  <pre><code>{% extends "basic_app/basic.html" %}
  {% load staticfiles %}
  {% block body_block %}
  
  &lt;div class="jumbotron"&gt;
    {% if registered %}
    &lt;h1&gt;Thank you for registering!&lt;/h1&gt;
    {% else %}
    &lt;h1&gt;Register Here!&lt;/h1&gt;
    &lt;form enctype="multipart/form-data" method="post"&gt;
  
      {{user_form.as_p}}
      {{profile_form.as_p}}
      {% csrf_token %}
      &lt;input type="submit" name="" value="Register"&gt;
    &lt;/form&gt;
    {% endif %}
  
  &lt;/div&gt;
  
  {% endblock %}
  
  </code></pre>
  
  <p>ALSO EXPLAIN: How the dictionary defined in "return" statement in views.py works step by step.</p>