from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from django.shortcuts import render_to_response


def home_page(request):
    return render_to_response('home_page/index.html')

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from django.shortcuts import render_to_response
from django.template import RequestContext


def home_page(request):
    return render_to_response('home_page/index.html', RequestContext(request))

Add RequestContext to Micro site
Add RequestContext to Micro site

This allows us to populate settings variables such as Google Analytics
codes. See original work done for #769.

Refs #920

  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import division
  
  from django.shortcuts import render_to_response
+ from django.template import RequestContext
  
  
  def home_page(request):
-     return render_to_response('home_page/index.html')
+     return render_to_response('home_page/index.html', RequestContext(request))
  
Add RequestContext to Micro site
## Code Before:
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from django.shortcuts import render_to_response


def home_page(request):
    return render_to_response('home_page/index.html')

## Instruction:
Add RequestContext to Micro site
## Code After:
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from django.shortcuts import render_to_response
from django.template import RequestContext


def home_page(request):
    return render_to_response('home_page/index.html', RequestContext(request))
