django change default runserver port

I would like to make the default port that runserver listens on specifiable in an extraneous config.ini. Is there an easier fix than parsing sys.argv inside 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 config.ini.

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



Back to homepage or read more recommendations: