I have tried many suggestions. I have been tasked with designing a serial interface with unknown number of and name of ports. I am having trouble listing the serial ports and adding them to a drop list. I have tried in views and html, neither work. I am loosing money on this one fast. I am not a student.
please provide the code here.
This is not a Django issue - it’s a Python issue. You’ll need to use a third-party library - I’ve used pySerial in the past. See pySerial — pySerial 3.4 documentation