OpenSlides/manage.py

19 lines
566 B
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Django's execute manager.
2012-04-25 22:29:19 +02:00
:copyright: 2011, 2012 by OpenSlides team, see AUTHORS.
2011-07-31 10:46:29 +02:00
:license: GNU GPL, see LICENSE for more details.
"""
2012-11-01 10:56:38 +01:00
import os, sys
2012-11-28 19:20:43 +01:00
from django.core.management import execute_from_command_line
from openslides.main import get_user_config_path, setup_django_environment
2012-11-01 10:56:38 +01:00
2011-07-31 10:46:29 +02:00
if __name__ == "__main__":
2013-03-14 22:18:56 +01:00
if 'DJANGO_SETTINGS_MODULE' not in os.environ:
setup_django_environment(
get_user_config_path('openslides', 'settings.py'))
execute_from_command_line(sys.argv)