Files
wger/manage.py
Roland Geider d0813d2429 Move tasks.py back to the source folder
This was causing many problems with the installation and was only needed for
the packaged version in pypi.

See #277 for more details
2016-04-26 18:42:42 +02:00

21 lines
540 B
Python
Executable File

#!/usr/bin/env python
import sys
from django.core.management import execute_from_command_line
from tasks import (
setup_django_environment,
get_user_config_path
)
if __name__ == "__main__":
# If user passed the settings flag ignore the default wger settings
if not any('--settings' in s for s in sys.argv):
setup_django_environment(get_user_config_path('wger', 'settings.py'))
# Alternative to above
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
execute_from_command_line(sys.argv)