2 # -----------------------------------------------------------------------
3 # Copyright (C) 2007-2008 King County Library System
4 # Bill Erickson <erickson@esilibrary.com>
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.
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 # -----------------------------------------------------------------------
19 This launches the Django server. This script is especially useful for
20 running Django from a local (non-system-wide) install of Django
25 os.chdir('constrictor_gui')
26 os.environ['PYTHONPATH'] = os.path.join(os.path.abspath(''), '..')
28 if os.system('python manage.py runserver') != 0:
29 sys.stderr.write("Error starting Django admin")