Skip to content

Commit ed6a2b3

Browse files
committed
Ignore the security check because debugpy it only runs in development
1 parent 74fbb87 commit ed6a2b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def main() -> None:
1414
if os.environ.get("RUN_MAIN") or os.environ.get("WERKZEUG_RUN_MAIN"):
1515
import debugpy
1616

17-
debugpy.listen(("0.0.0.0", 5678))
17+
# Use "nosec" inline comment to ignore security check because this doesn't run in production
18+
debugpy.listen(("0.0.0.0", 5678)) # nosec
1819
print("Debugpy attached!")
1920

2021
try:

0 commit comments

Comments
 (0)