fixed manage.py for windows
This commit is contained in:
parent
ab4c5791ad
commit
638c729dce
@ -8,9 +8,10 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
from django.core.management import execute_from_command_line
|
||||||
|
from openslides.main import get_user_config_path, setup_django_environment
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.path.append(os.path.join(os.path.expanduser('~'), '.config', 'openslides'))
|
setup_django_environment(
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
get_user_config_path('openslides', 'settings.py'))
|
||||||
from django.core.management import execute_from_command_line
|
|
||||||
execute_from_command_line(sys.argv)
|
execute_from_command_line(sys.argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user