From 5f6dc3a7a264bc10cc1406c025812f978e9dcc77 Mon Sep 17 00:00:00 2001 From: TheresNoTime Date: Fri, 4 Sep 2026 11:34:10 +0100 Subject: [PATCH] Remove duplicated code in manage.py --- manage.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/manage.py b/manage.py index 9f77936..29ba29a 100755 --- a/manage.py +++ b/manage.py @@ -5,27 +5,6 @@ from dotenv import load_dotenv -def main(): - try: - from django.core.management import execute_from_command_line - except ImportError as exc: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) from exc - load_dotenv(".env") - execute_from_command_line(sys.argv) - - -if __name__ == "__main__": - main() #!/usr/bin/env python -"""Django's command-line utility for administrative tasks.""" -import os -import sys -from dotenv import load_dotenv - - def main(): try: from django.core.management import execute_from_command_line