I would like to make the default port that manage.py runserver
listens on specifiable in an extraneous config.ini
. Is there an easier fix than parsing sys.argv
inside manage.py
and inserting the configured port?
The goal is to run ./manage.py runserver
without having to specify address and port every time but having it take the arguments from the config.ini
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…