Did I find the right examples for you? yes no

All Samples(270)  |  Call(35)  |  Derive(0)  |  Import(235)

src/t/a/tango-happenings-0.3.2/happenings/views.py   tango-happenings(Download)
 
from .forms import GiveawayResponseForm, PlayListForm, MemoryForm, AddEventForm, EventRecapForm, EventUpdateForm
from .models import Event, Update, Giveaway, GiveawayResponse, PlaylistItem, Image, ExtraInfo, Memory
 
key = getattr(settings, 'GMAP_KEY', None)
        try:
            upload = Image(
                event   = event,
                image   = upload_file,
                caption = caption,

src/w/a/waldo-0.1/waldo/locate/load.py   waldo(Download)
    def load_image(img, is_coloc):
        return models.Image(
                    img.findtext('filename'),
                    is_coloc,
                    img.findtext('celltype'),

src/d/j/django-suave-0.5.19/suave/utils.py   django-suave(Download)
 
 
from .models import pre_route, post_route, Image
 
 
def get_default_image():
    try:
        return Image(image=settings.DEFAULT_IMAGE)
    except AttributeError:
        return None

src/d/e/denigma-HEAD/denigma/apps/media/views.py   denigma(Download)
from add.forms import handlePopAdd
 
from models import Image
from forms import UploadForm, ArtistForm, ImageForm
 
    #content = file['content']
    store_in_s3(file.name, file.read())
    p = Image(url="http://%s.s3.amazonaws.com/%s" % (bucket, file.name))
 
    if isinstance(request.user, AnonymousUser):
    file = request.FILES['file']
    store_in_s3(file.name, file.read())
    p = Image(url="http://%s.s3.amazonaws.com/%s" % (bucket, file.name))
 
    if isinstance(request.user, AnonymousUser):

src/b/e/betty-cropper-0.1.13/betty/cropper/views.py   betty-cropper(Download)
from django.views.decorators.cache import cache_control
 
from .models import Image, Ratio
from .utils.placeholder import placeholder
 
    so that we can use it to generate a full URL.
    """
    image = Image(id=image_id)
 
    return HttpResponseRedirect(image.get_absolute_url(ratio=ratio_slug, width=width, format=extension))

src/o/p/openlibrary-HEAD/openlibrary/plugins/upstream/covers.py   openlibrary(Download)
from infogami.utils.view import safeint
from utils import get_coverstore_url, render_template
from models import Image
from openlibrary import accounts
 
        if coverid:
            self.save(book, coverid, url=i.url)
            cover = Image(web.ctx.site, "b", coverid)
            return render_template("covers/saved", cover)
        else:

src/p/o/pombola-HEAD/pombola/images/tests.py   pombola(Download)
from django.contrib.contenttypes.models import ContentType
 
from models import Image
 
from nose.tools import nottest
        # create an image
        first = Image(
            content_type = test_site_ct,
            object_id    = test_site_id,
            source       = 'test directory',            
        # create another image
        second = Image(
            content_type = test_site_ct,
            object_id    = test_site_id,
            source       = 'test directory',            
        # create a third image with is_primary true at the start
        third = Image(
            content_type = test_site_ct,
            object_id    = test_site_id,
            source       = 'test directory',            

src/d/j/Django-Pizza-14.04.3/pizza/kitchen_sink/admin.py   Django-Pizza(Download)
 
from .widgets import RichText
from .models import Page, Version, Redirect, Image, File, Blurb, Author, \
                    ImageSet, ImageSetItem, Inline, EDITORTYPES
 

src/d/j/Django-Pizza-HEAD/pizza/kitchen_sink/admin.py   Django-Pizza(Download)
 
from .widgets import RichText
from .models import Page, Version, Redirect, Image, File, Blurb, Author, \
                    ImageSet, ImageSetItem, Inline, EDITORTYPES
 

src/t/a/tango-happenings-0.3.2/happenings/admin.py   tango-happenings(Download)
from django.contrib import admin
 
from .models import Image, BulkEventImageUpload, UpdateImage, EventVideo
from .models import Event, Update, Memory, ExtraInfo, Giveaway, GiveawayResponse, Schedule
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next