How to configure application mflix port?

The application runs on local port 5000, I guess it’s the default port used by Flask. Unfortunately I have another application I need for work that is running in that same port.

Is it possible to change it? will it complicate the next steps/instructions?

Many thanks in advance.

Lucia

It is totally possible to change this and it will not affect any future coding assignments. Please do it in .ini file and proceed :slight_smile:

Do let us know if you have any issues.

Kanika

Thanks Kanika, I added the option to the .ini and also modified run.py. It works fine :slight_smile:

.ini
[FLASK]
PORT = 5001

run.py
port = int(config[‘FLASK’][‘PORT’])
app.run(port=port)

1 Like

Glad to hear that :slight_smile: Good luck

Kanika