jonny jonny - 1 year ago 321
Python Question

django change default runserver port

I would like to make the default port that runserver
listens on specifiable in an extraneous
. Is there an easier fix than parsing
and inserting the configured port?

The goal is to run
./ runserver
without having to specify address and port every time but having it take the arguments from the

Answer Source

create a bash script with the following:

exec ./ runserver<your_port>

save it as runserver in the same dir as

chmod +x runserver

and run it as