X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..ff382f6c37063c0c4c5d21c2834a8759e25c5d02:/src/manage.py?ds=sidebyside diff --git a/src/manage.py b/src/manage.py index c1c055b1e..d69b6e5f5 100755 --- a/src/manage.py +++ b/src/manage.py @@ -8,7 +8,11 @@ sys.path = [ ] + 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