old_contents: from django.http import HttpResponse
  from django.shortcuts import get_object_or_404, render_to_response
  from django.template import RequestContext
  from django.conf import settings
  import logging
  from restclients.gws import GWS
  from myuw_mobile.dao.sws import Quarter as QuarterDao
  from myuw_mobile.logger.timer import Timer
  from myuw_mobile.user import UserService
  from myuw_mobile.logger.util import log_data_not_found_response, log_invalid_netid_response, log_success_response
  
  #@mobile_template('{mobile/}index.html')
  def index(request):
      timer = Timer()
      logger = logging.getLogger('myuw_mobile.views.page.index')
  
      context = {'year': None,
                 'quarter': None,
                 'home_url': '/mobile',
                 'err': None}
  
      if not request.is_secure():
          context['err'] = 'Not https, abort!'
      else:
          netid = UserService().get_user()
          if not netid:
              context['err'] = 'Invalid netid!'
              log_invalid_netid_response(logger, timer)
          else:
              cur_term = QuarterDao().get_cur_quarter()
              if not cur_term:
                  context['err'] = 'No current quarter data!'
                  log_data_not_found_response(logger, timer)
              else:
                  context['year'] = cur_term.year
                  context['quarter'] = cur_term.quarter
                  log_success_response(logger, timer)
      return render_to_response('index.html',
                                context,
                                context_instance=RequestContext(request))
  
  
new_contents: from django.http import HttpResponse
  from django.shortcuts import get_object_or_404, render_to_response
  from django.template import RequestContext
  from django.conf import settings
  import logging
  from myuw_mobile.dao.sws import Quarter as QuarterDao
  from myuw_mobile.logger.timer import Timer
  from myuw_mobile.user import UserService
  from myuw_mobile.logger.util import log_data_not_found_response, log_invalid_netid_response, log_success_response
  
  #@mobile_template('{mobile/}index.html')
  def index(request):
      timer = Timer()
      logger = logging.getLogger('myuw_mobile.views.page.index')
  
      context = {'year': None,
                 'quarter': None,
                 'home_url': '/mobile',
                 'err': None}
  
      if not request.is_secure():
          context['err'] = 'Not https, abort!'
      else:
          netid = UserService().get_user()
          if not netid:
              context['err'] = 'Invalid netid!'
              log_invalid_netid_response(logger, timer)
          else:
              cur_term = QuarterDao().get_cur_quarter()
              if not cur_term:
                  context['err'] = 'No current quarter data!'
                  log_data_not_found_response(logger, timer)
              else:
                  context['year'] = cur_term.year
                  context['quarter'] = cur_term.quarter
                  log_success_response(logger, timer)
      return render_to_response('index.html',
                                context,
                                context_instance=RequestContext(request))
  
  
subject: remove unnecessary import from page.py.