aboutsummaryrefslogtreecommitdiff
path: root/automation/server/monitor/manage.py
blob: 59f6e2163f3f7867a875718e8fba7e225119fa57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python2
#
# 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)