aboutsummaryrefslogtreecommitdiff
path: root/automation/server/monitor/manage.py
blob: 57deb5c2c4b26ba8522fc857f68ec26cd9c46a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#

__author__ = 'kbaclawski@google.com (Krystian Baclawski)'

from django.core.management import execute_manager

try:
  import settings  # Assumed to be in the same directory.
except ImportError:
  import sys

  sys.stderr.write('Error: Can\'t find settings.py file in the directory '
                   'containing %r.' % __file__)
  sys.exit(1)

if __name__ == '__main__':
  execute_manager(settings)