import array

byte_array = array.array('B', uploaded_file_instance.read(uploaded_file_instance.size))
...

Python Django UploadedFile instanc...

by slimkrazy.myopenid.com, November 30, 2011 03:36, 1 refactoring, tagged with python, django, files, binary strings

A third party library requi...

55502f40dc8b7c769880b10874abc9d0 Talk
entries         = BlogEntry.objects.filter(status=True,sticky=False,control_tags=controlTag)[offset:(offset+limit)]
sticky_entries  = BlogEntry.objects.filter(status=True,sticky=True,control_tags=controlTag)

...

Python Django combining querysets

by rullon.myopenid.com, March 23, 2010 21:19, 1 refactoring, tagged with python, django

When i combine this way, re...

55502f40dc8b7c769880b10874abc9d0 Talk
from django.db import models

# Create your models here.
...

Python Create a Dict from a Model

by clickpass.com/public/issac.kelly, February 09, 2010 19:20, 2 refactorings, tagged with django

This is a snippet to create...

55502f40dc8b7c769880b10874abc9d0 Talk
def segment_pages(page):
    page.paginator.left = []
    page.paginator.right = []
...

Python Django / Python / Paginatio...

by bramston, June 11, 2008 04:58, 1 refactoring, tagged with python, django, pagination

Really quickly ported some ...

Eb74aac8da41a993ae9dd91a5b13b78a Talk
class SearchLet(Form):
    district = Field(widget=SelectMultiple(choices=DISTRICTS, required=False)
...

Python Django models search

by lbolognini, November 10, 2007 16:30, 3 refactorings, tagged with search, python, django, orm

I'm using the following cod...

D2ff155cd04fa175620d2f3495b11b08 Talk