Skip to content

Instantly share code, notes, and snippets.

@gabamnml
Created April 10, 2012 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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