]> git.evergreen-ils.org Git - working/random.git/blob - runcontroller.py
typo repair patch from James Fournie
[working/random.git] / runcontroller.py
1 #!/usr/bin/python
2 # -----------------------------------------------------------------------
3 # Copyright (C) 2007-2008  King County Library System
4 # Bill Erickson <erickson@esilibrary.com>
5
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 3
9 # of the License, or (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 # -----------------------------------------------------------------------
16
17
18 ''' 
19 This launches the Django server.  This script is especially useful for
20 running Django from a local (non-system-wide) install of Django
21 '''
22
23 import os, sys
24
25 os.chdir('constrictor_gui')
26 os.environ['PYTHONPATH'] = os.path.join(os.path.abspath(''), '..')
27
28 if os.system('python manage.py runserver') != 0:
29     sys.stderr.write("Error starting Django admin")