Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

imsto-go client in python, include wrapper of django storage

Project Description
#imsto-go client in python

## installation

`sudo pip-2.7 install -e .` (recommend)
or
`sudo python setup.py install`

## django settings

`settings.py`:

~~~
DEFAULT_FILE_STORAGE = 'imsto_client.django.ImageStorage'
IMSTO_HOST = 'localhost:8964'
IMSTO_ROOF = 'demo'
IMSTO_URL_PREFIX = '/'
IMSTO_THUMB_PATH = '/thumb'
~~~

`admins`

~~~
from django.contrib import admin
from imsto_client.django.widgets import AdminImageWidget

class GoodsAdmin(admin.ModelAdmin):

def formfield_for_dbfield(self, db_field, **kwargs):
if db_field.name == 'image_path':
request = kwargs.pop("request", None)
kwargs['widget'] = AdminImageWidget
return db_field.formfield(**kwargs)
return super(GoodsAdmin,self).formfield_for_dbfield(db_field, **kwargs)

"""more other methods""

~~~

## nginx configuration

see also: imsto-go/INSTALL.md
Release History

Release History

This version
History Node

1.0.4

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
imsto_client-1.0.4.macosx-10.9-x86_64.tar.gz (10.5 kB) Copy SHA256 Checksum SHA256 any Dumb Binary May 22, 2014
imsto_client-1.0.4-py2.7.egg (13.9 kB) Copy SHA256 Checksum SHA256 2.7 Egg May 22, 2014
imsto_client-1.0.4.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source May 22, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting