old_contents: # -*- coding: utf-8 -*-
  
  from django.contrib.auth.decorators import login_required
  from django.views.generic.simple import direct_to_template
  from django.utils.translation import ugettext as _
  from django.conf import settings
  from apps.riskreport.forms import RiskReportForm
  
  import sys, os
  from models import *
  
  from utils import clogging
  log = clogging.getColorLogger(__name__)
  
  
  @login_required
  def index(request):
      # user_id = request.user.username
      # msg, err = '', ''
  
      # TODO: create funciton
  
      # people = get_people(scale)
      # snps = get_pca_snps(scale)
      # genotyes = get_genotypes(snps)
      # person = project_new_person(genotyes, scale)
  
      people = dict()
      for scale in ['global', ' EastAsia', 'Europe', 'Africa', 'Americas']:
          people[scale] = get_people(scale)
      person = [3,3]  # one point (PC1, PC2), which represetns one person in PCA coordinate.
  
      return direct_to_template(request, 'population/index.html', dict(scale=scale,
                                                                       people=people,
                                                                       person=person))
  
new_contents: # -*- coding: utf-8 -*-
  
  from django.contrib.auth.decorators import login_required
  from django.views.generic.simple import direct_to_template
  from django.utils.translation import ugettext as _
  from django.conf import settings
  from apps.riskreport.forms import RiskReportForm
  
  import sys, os
  from models import *
  
  from utils import clogging
  log = clogging.getColorLogger(__name__)
  
  
  @login_required
  def index(request):
      # user_id = request.user.username
      # msg, err = '', ''
  
      # TODO: create funciton
  
      # people = get_people(scale)
      # snps = get_pca_snps(scale)
      # genotyes = get_genotypes(snps)
      # person = project_new_person(genotyes, scale)
  
      people = dict()
      for scale in ['global', 'EastAsia', 'Europe', 'Africa', 'Americas']:
          people[scale] = get_people(scale)
      person = [3,3]  # one point (PC1, PC2), which represetns one person in PCA coordinate.
  
      return direct_to_template(request, 'population/index.html', dict(scale=scale,
                                                                       people=people,
                                                                       person=person))
  
subject: fix typo