[Answer]-Change debug-setting based on port-number?

1👍

You could do this by passing a settings module to the command like this:

python manage.py runserver --settings=mysettings

and in your mysettings.py you could import the actual settings file and then overwrite whatever you need.

#mysettings.py

from myproject.settings import *
DEBUG = False

Leave a comment