Batch Image Upload with Drag & Drop in the Django Admin

Posted by: barbara | Date: Feb 12, 2013 | Category: Django Django 1.3

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 ...

Read More

Snippets

Posted by: barbara | Date: Feb 11, 2013 | Category:

Python

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')) 

Django

get a list of all available subcommands:

 python manage.py help 

cmd line

...

Read More

Git/GitHub Micro Workshop

Posted by: barbara | Date: Feb 04, 2013 | Category: Girl Geeks Git

Back on January 29th, PyLadies Austin held a micro workshop to cover Git/GitHub.

http://www.meetup.com/PyLadies-ATX/events/99435462/

It was a quick hands-on introduction to the core features of Git, as well as some of the things you can do with GitHub. The group was very small (just six people) and informal. It ...

Read More

PyCon 2013: Young Coder "Lets Learn Python" Tutorial

Posted by: barbara | Date: Jan 28, 2013 | Category: PyCon

At PyCon 2013, I'll be participating in my first-ever tutorial, helping Katie Cunningham as we introduce 12- to 18-year-olds to the world of Python coding.

From the official description:

    "This free tutorial will explore how to program using Python by making games. The workshop will start with learning Python's simple ...

    Read More

PyLadies Austin In 2013

Posted by: barbara | Date: Jan 10, 2013 | Category: Python

This year is shaping up to be a busy one. On my arrival in Austin I founded a PyLadies chapter, and our first meeting is scheduled for tonight. We'll be doing a round of introductions, then brainstorming about what projects we'd like to get to work on in ...

Read More