def run(): from djangocms_helper import runner os.environ.setdefault('DATABASE_URL', 'sqlite://localhost/testdb.sqlite') # we use '.runner()', not '.cms()' nor '.run()' because it does not # add 'test' argument implicitly runner.runner([sys.argv[0], 'cms', '--cms', 'server', '--bind', '0.0.0.0', '--port', str(port)])
def run(): from djangocms_helper import runner os.environ.setdefault('DATABASE_URL', 'sqlite://localhost/testdb.sqlite') # we use '.runner()', not '.cms()' nor '.run()' because it does not # add 'test' argument implicitly runner.runner([sys.argv[0], 'cms', '--cms', 'server', '--bind', '0.0.0.0', '--port', str(port)])