X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..998a1e2aeaea0c5361e526365d1e94d7eaa9d4e8:/src/manage.py?ds=inline diff --git a/src/manage.py b/src/manage.py index c1c055b1e..a29b48f38 100755 --- a/src/manage.py +++ b/src/manage.py @@ -2,13 +2,13 @@ import os import sys -ROOT = os.path.dirname(os.path.abspath(__file__)) -sys.path = [ - os.path.join(ROOT, '../lib/librarian'), -] + sys.path if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wolnelektury.settings") + os.environ.setdefault( + "DJANGO_SETTINGS_MODULE", + "wolnelektury.settings.test" + if 'test' in sys.argv + else "wolnelektury.settings") from django.core.management import execute_from_command_line