Saturday, 8 June 2013

What are some possible uses for Django's IPAddressField?

What are some possible uses for Django's IPAddressField?

What are some common reasons, or example cases, in which storing the user's IP address in a model instance would be useful? I can't think of any off the top of my head.
Reading through Django's now-deprecated Comments framework, I see that they stored the commenter's IP address in a GenericIPAddressField within the Comment model. Why? What's the point of storing it?

No comments:

Post a Comment