blob: 9e488f5b9903266c846c58af6d20ead8952bd318 [file] [log] [blame]
Scott Zawalski5a3d6052012-02-15 10:33:57 -05001# 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
5import os, sys
6
7# The frontend directory needs to be added to our path for the WSGI
8# application to work properly.
9frontend_path = os.path.abspath(
10 os.path.join(os.path.dirname(__file__, '..', 'frontend'))
11sys.path.append(frontend_path)
12
13os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
14
15import django.core.handlers.wsgi
16
17application = django.core.handlers.wsgi.WSGIHandler()