From 4b3bef609ea7b472e06e1473e880f0950821d7f2 Mon Sep 17 00:00:00 2001 From: Niklas Mohrin Date: Mon, 18 Nov 2024 20:19:02 +0100 Subject: [PATCH] fix manage.py --- evap/__main__.py | 7 ++++++- manage.py | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) mode change 120000 => 100755 manage.py diff --git a/evap/__main__.py b/evap/__main__.py index 4dcfce4a22..fc6d20e5de 100755 --- a/evap/__main__.py +++ b/evap/__main__.py @@ -2,9 +2,14 @@ import os import sys -if __name__ == "__main__": + +def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evap.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) + + +if __name__ == "__main__": + main() diff --git a/manage.py b/manage.py deleted file mode 120000 index 1d75b7d060..0000000000 --- a/manage.py +++ /dev/null @@ -1 +0,0 @@ -evap/__main__.py \ No newline at end of file diff --git a/manage.py b/manage.py new file mode 100755 index 0000000000..703b7a085f --- /dev/null +++ b/manage.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +from evap.__main__ import main + +main()