Home | History | Annotate | Download | only in apache
      1 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import os, sys
      6 
      7 # The frontend directory needs to be added to our path for the WSGI
      8 # application to work properly.
      9 frontend_path = os.path.abspath(
     10     os.path.join(os.path.dirname(__file__, '..', 'frontend'))
     11 sys.path.append(frontend_path)
     12 
     13 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
     14 
     15 import django.core.handlers.wsgi
     16 
     17 application = django.core.handlers.wsgi.WSGIHandler()
     18