djangosnippets.org: Latest snippets posted by SeniorHuevohttps://djangosnippets.org/users/SeniorHuevo/2010-03-17T09:59:15.740395-05:00SeniorHuevoIPAddressField with CIDR support
2010-03-17T09:59:15.740395-05:00SeniorHuevohttps://djangosnippets.org/snippets/1961/<p>Based on #1381</p>
<p>Use this piece of code to add IPv4/IPv6 and network support to Django.</p>
<p>An IPAddressField allows you to find IP's for a given subnet. An IPNetworkField allows you to find a subnet for a given IP or find a subnet within a subnet.</p>
<p>For starters, simply paste …</p>
Freely redistributable