Created
April 10, 2012 13:46
-
-
Save gabamnml/2351494 to your computer and use it in GitHub Desktop.
Django Debug Toolbar conf. for VMware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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