Skip to content

Commit

Permalink
Run make fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Dec 6, 2024
1 parent e8b247b commit a871e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import sys


def initialize_debugpy():
try:
import debugpy
Expand All @@ -15,6 +16,7 @@ def initialize_debugpy():
debugpy.listen(("0.0.0.0", 5678))
sys.stdout.write("debugpy listening on port 5678...\n")


def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.prod")

Expand All @@ -28,6 +30,7 @@ def main():
) from exc
execute_from_command_line(sys.argv)


if __name__ == "__main__":
ENABLE_DEBUGPY = os.getenv("ENABLE_DEBUGPY")
if ENABLE_DEBUGPY and ENABLE_DEBUGPY.lower() == "true":
Expand Down

0 comments on commit a871e41

Please sign in to comment.