blob: 4a1a959994a87e2a187a7ced395bffece14d5b2c [file] [log] [blame]
Tony Mack71592a52013-03-28 20:17:47 -04001#!/usr/bin/env python
2import os
3import sys
4
5from plstackapi.planetstack.config import Config
6
7if __name__ == '__main__':
8
9 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
10 from django.core.management import ManagementUtility
11 config = Config()
Tony Macke02d7202013-03-29 11:23:56 -040012 url = "%s:%s" % (config.api_host, config.api_port)
Tony Mack71592a52013-03-28 20:17:47 -040013 args = [__file__, 'runserver', url]
14 server = ManagementUtility(args)
15 server.execute()