Entries in 'Python'
How To Filter A Django Form's Multiple Choice Or Foreign Key Set With A Generic View
On: Sat, April 14, 2012 By: Travis Millward In: Django , Python , Web Development
On an app I am working on I needed to relate a photo to a project. I created a model called Connection. It basically has two fields. "Photo" and "Project". They are both foreign keys back to the Photo and Project models. Well I ran into a problem. I wanted to be able to say okay associate photo A with project B. I could do ... Read more»
Posted in: Django , Python , Web Development
How To Get The Next And Previous Object From A List Of Objects Or Queryset
On: Fri, March 23, 2012 By: Travis Millward In: Django , Python
With django's help, I made a photo app. Each photo can belong to multiple Projects. I can get a list of photos for a Project and display their thumbnails. When I click on a thumbnail it pops up the large version of the photo in a nice div on the screen. I wanted to be able to click "next" or "previous" and get the next or previous photo in the project, and not the next or previous photo from the entire list of photos that is returned by my manager. Read more»
Pil With Libjpeg On Os X Snow Leopard
On: Wed, April 06, 2011 By: Chris Robison In: Python
How I fixed my _imaging import problem. Read more»
Posted in: Python