I used DRF REST to achieve file upload function.
models.py
class NetworkConfig(models.Model): ipaddress = models