old_contents: import sys, os
  from django.contrib.auth.decorators import login_required
  from django.shortcuts import render
  from django.utils.translation import ugettext as _
  from django.conf import settings
  
  from utils.clogging import getColorLogger
  log = getColorLogger(__name__)
  
  
  @login_required
  def index(request):
      user_id = request.user.email
  
      # while True:
      #     gwascatalog.check_gwascatalog_imported()
      #     catalog_latest_new_records_data = gwascatalog.get_latest_added_date()
      #     recent_catalog_records = gwascatalog.get_recent_catalog_records()
  
      #     infos = genomes.get_data_infos(user_id)
  
      #     if user_id.startswith(settings.DEMO_USER_ID):
      #         tmp_user_info = user.get_user_info(user_id)
      #         if not tmp_user_info.get('last_viewed_file'):
      #             intro_type = 'demo_welcome'
      #         else:
      #             intro_type = 'demo_invitation'
  
      #     else:
      #         if not infos:
      #             intro_type = 'welcome'
      #             break
  
      #         # for info in infos:
      #         #     if not info['status'] == 100:
      #         #         intro_type = ['wait_upload']
  
      #     break
  
      # msgs = dict(msg=msg, err=err,
      #             demo_user_id=settings.DEMO_USER_ID,
      #             catalog_latest_new_records_data=catalog_latest_new_records_data,
      #             recent_catalog_records=recent_catalog_records,
      #             infos=infos,
      #             intro_type=intro_type,
      #             is_registerable=settings.IS_REGISTERABLE)
  
      return render(request, 'dashboard/index.html',
                    dict(user_id=user_id))
  
new_contents: import sys, os
  from django.contrib.auth.decorators import login_required
  from django.shortcuts import render
  from django.utils.translation import ugettext as _
  from django.conf import settings
  
  from utils.clogging import getColorLogger
  log = getColorLogger(__name__)
  
  
  @login_required
  def index(request):
      user_id = request.user.email
  
      # while True:
      #     gwascatalog.check_gwascatalog_imported()
      #     catalog_latest_new_records_data = gwascatalog.get_latest_added_date()
      #     recent_catalog_records = gwascatalog.get_recent_catalog_records()
  
      #     infos = genomes.get_data_infos(user_id)
  
      #     if user_id.startswith(settings.DEMO_USER_ID):
      #         tmp_user_info = user.get_user_info(user_id)
      #         if not tmp_user_info.get('last_viewed_file'):
      #             intro_type = 'demo_welcome'
      #         else:
      #             intro_type = 'demo_invitation'
  
      #     else:
      #         if not infos:
      #             intro_type = 'welcome'
      #             break
  
      #         # for info in infos:
      #         #     if not info['status'] == 100:
      #         #         intro_type = ['wait_upload']
  
      #     break
  
      # msgs = dict(msg=msg, err=err,
      #             demo_user_id=settings.DEMO_USER_ID,
      #             catalog_latest_new_records_data=catalog_latest_new_records_data,
      #             recent_catalog_records=recent_catalog_records,
      #             infos=infos,
      #             intro_type=intro_type,
      #             is_registerable=settings.IS_REGISTERABLE)
  
      return render(request, 'index.html',
                    dict(user_id=user_id))
  
subject: fix template path