Skip to content

Instantly share code, notes, and snippets.

@gabamnml
Created April 10, 2012 13:46
Show Gist options
  • Save gabamnml/2351494 to your computer and use it in GitHub Desktop.
Save gabamnml/2351494 to your computer and use it in GitHub Desktop.
Django Debug Toolbar conf. for VMware
if DEBUG:
from fnmatch import fnmatch
class glob_list(list):
def __contains__(self, key):
for elt in self:
if fnmatch(key, elt): return True
return False
INTERNAL_IPS = glob_list(['127.0.0.1', '192.168.*.*'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment