old_contents: import json
  import os
  import re
  
  from django.shortcuts import render_to_response
  from django.http import HttpResponse, HttpResponseBadRequest,\
       HttpResponseRedirect
  from django.conf import settings
  from django.contrib.auth.decorators import login_required
  from django.template import RequestContext
  
  
  def load_json(name):
      cwd = os.path.dirname(os.path.abspath(__file__))
      path = os.path.join(cwd, 'protected_data', 'new_data')
      file_path = os.path.join(path, name + '.json')
      with open(file_path, 'r') as f:
          json = f.read()
      return json
  
  
  def index(request):
      return render_to_response('index.html',
          {}, context_instance=RequestContext(request))
  
  
  def download(request):
      return render_to_response('data_download.html',
          {}, context_instance=RequestContext(request))
  
  
  def about(request):
      return render_to_response('about.html',
          {}, context_instance=RequestContext(request))
  
  
  @login_required
  def dashboard(request):
      return render_to_response('dashboard.html',
          {
              'zones': load_json('zones'),
              'indicators': load_json('indicators'),
              'lga_overview': load_json('lga_overview'),
              'lga_sectors': load_json('lga_sectors')
          },
          context_instance=RequestContext(request))
  
  
  
new_contents: import json
  import os
  import re
  
  from django.shortcuts import render_to_response
  from django.http import HttpResponse, HttpResponseBadRequest,\
       HttpResponseRedirect
  from django.conf import settings
  from django.template import RequestContext
  
  
  def load_json(name):
      cwd = os.path.dirname(os.path.abspath(__file__))
      path = os.path.join(cwd, 'protected_data', 'new_data')
      file_path = os.path.join(path, name + '.json')
      with open(file_path, 'r') as f:
          json = f.read()
      return json
  
  
  def index(request):
      return render_to_response('index.html',
          {}, context_instance=RequestContext(request))
  
  
  def download(request):
      return render_to_response('data_download.html',
          {}, context_instance=RequestContext(request))
  
  
  def about(request):
      return render_to_response('about.html',
          {}, context_instance=RequestContext(request))
  
  
  def dashboard(request):
      return render_to_response('dashboard.html',
          {
              'zones': load_json('zones'),
              'indicators': load_json('indicators'),
              'lga_overview': load_json('lga_overview'),
              'lga_sectors': load_json('lga_sectors')
          },
          context_instance=RequestContext(request))
  
  
  
subject: Remove login_required