The dates and location for this years's PyTexas have finally been announced!
PyTexas 2013 will be taking place over three days - August 16th, 17th, and 18th - in College Station, on the A&M University campus.
Planning is still in the early stages - the call for proposals should be ...
The assignment: Find a way to implement batch image uploads in the Django admin using a drag and drop interface. For the record, we're using jQuery 1.8, and Bootstrap for some of the styling. Temporary files are being posted to S3, using boto (for more information: http://boto.s3.amazonaws.com/s3_tut.html), while the ...
print line numbers in a Python script:
import sys frame = sys._getframe() print frame.f_lineno
Python - date from Unix timestamp
import datetime print(datetime.datetime.fromtimestamp(int("1284101485")).strftime('%Y-%m-%d %H:%M:%S'))
get a list of all available subcommands:
python manage.py help