<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| height: 650 | |
| license: mit |
| description "uWSGI server for electris CMS" | |
| start on runlevel [2345] # start on all runlevels. | |
| stop on runlevel [!2345] # stop when shutting down. | |
| respawn # respawn if job crashes or is stopped ungracefully. | |
| env DEPLOYMENT_TARGET=production # set any environment variables you like here. | |
| env DJANGO_SETTINGS_FILE=conf/settings.py # more environment variables if you like. | |
| env PYTHONPATH=/home/ubuntu/apps/my_app:/home/ubuntu/.virtualenv/my_app |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Chernoff Smileys</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.5.0"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.5.0"></script> | |
| <style type="text/css"> | |
| </style> | |
| </head> |
| import sys | |
| import logging | |
| from optparse import make_option | |
| from django.core.management.base import BaseCommand, CommandError | |
| class Command(BaseCommand): | |
| help = ("Invalidates portions of the queryset cache based on the app names" | |
| " or models provided as arguments to the command. If no arguments " | |
| "are provided, nothing is done. To clear the entire queryset " |
| try: | |
| import xlrd | |
| def XLSDictReader(f, sheet_index=0): | |
| data = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) | |
| book = xlrd.open_workbook(file_contents=data) | |
| sheet = book.sheet_by_index(sheet_index) | |
| def item(i, j): | |
| return (sheet.cell_value(0,j), sheet.cell_value(i,j)) |