overriding save method to save ip address in django models

后端 未结 0 771
無奈伤痛
無奈伤痛 2021-01-01 16:11

I am working on a Django project and I need to save the user\'s IP address in my database.

I can get user\'s ip address with request.META.get("REMOTE_ADDR&

相关标签:
回答
  • 消灭零回复
提交回复
热议问题