Presented by Michael Manfre
www.src.org, a case study of running Django in a Windows environment. This talk will describe the Semiconductor Research Corporation's (SRC) website,
Presented by Michael Manfre
www.src.org, a case study of running Django in a Windows environment. This talk will describe the Semiconductor Research Corporation's (SRC) website,
| from django.http import HttpResponse | |
| from django.template import RequestContext | |
| from django.template.loader import render_to_string | |
| from django.utils.decorators import available_attrs | |
| import waffle | |
| def waffled_view(function=None, flag=None, template='503-waffled.html', **kwargs): | |
| """ | |
| Check the decorated view to see if the flag is enabled for the current | |
| request. Any kwargs will be made available to the template. |
| #!/usr/bin/env python | |
| """ | |
| Use pip to get a list of local packages to check against one or more package | |
| indexes for updated versions. | |
| """ | |
| import sys | |
| import xmlrpclib | |
| import subprocess | |
| from distutils.version import StrictVersion, LooseVersion |
| # Example logging configuration that will restrict console logging to | |
| # at most 2 repeated messages per 30 seconds. | |
| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': True, | |
| 'formatters': { | |
| 'simple': { | |
| 'format': '%(asctime)s - %(name)s - %(levelname)s - %(filename)s:%(lineno)d - %(message)s' | |
| }, | |
| }, |