2013-02-27 18:22:24 +01:00
|
|
|
#!/usr/bin/env python
|
2013-01-23 21:12:36 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
2013-02-27 18:22:24 +01:00
|
|
|
openslides.utils.management.commands.runserver
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2013-01-23 21:12:36 +01:00
|
|
|
|
2013-02-27 18:22:24 +01:00
|
|
|
Overrides the Django runserver command to start the tornado webserver.
|
|
|
|
|
|
|
|
:copyright: (c) 2011-2013 by the OpenSlides team, see AUTHORS.
|
2013-01-23 21:12:36 +01:00
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
|
|
from openslides.main import main
|
|
|
|
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
'''
|
|
|
|
Start the application using the tornado webserver
|
|
|
|
'''
|
|
|
|
|
|
|
|
help = 'Start the application using the tornado webserver'
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
main(check_args=False)
|