jonny jonny - 1 year ago 525
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download