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
class NonHtmlDebugToolbarMiddleware(object): | |
""" | |
The Django Debug Toolbar usually only works for views that return HTML. | |
This middleware wraps any JSON response in HTML if the request | |
has a 'debug' query parameter (e.g. http://localhost/foo?debug) | |
""" | |
@staticmethod | |
def process_response(request, response): | |
if request.GET.get('debug'): |
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
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |