django-kittenstorage 1.0.0
Django Storage Engine which returns images of kittens if files could not be found.
kittenstorage is a so called development storage engine.
Many people have the problem with gigantomanic production databases with gigabytes of pictures/files. It is a pain to keep the image files synchronised between development and production environments.
Therefore I have written this storage engine. In case a file is not found, an image from placekitten.com will be used/displayed instead.
Setup
It's on pypi.
pip install django-kittenstorage
Feel free to clone from github too. Forking is welcome as well :-)
In your django settings file:
DEFAULT_FILE_STORAGE = 'kittenstorage.storages.GreyKitten'
Storage Engines
kittenstorage offers two engines:
- kittenstorage.storages.GreyKitten
- kittenstorage.storages.ColorKitten
Choose depending on the saturation you want. I prefer GreyKitten since it does have a pretty classy look.
Settings
There is only one setting:
- KITTEN_SIZE
Default: (1024, 1024)
A tuple of format (width, height), specifiying the size of the image requested from placekitten.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-kittenstorage-1.0.0.tar.gz (md5) | Source | 2011-08-13 | 2KB | 219 | |
- Author: Luis Nell
- Home Page: https://github.com/originell/django-kittenstorage
- Platform: any
-
Categories
- Development Status :: 5 - Production/Stable
- Environment :: Web Environment
- Framework :: Django
- Intended Audience :: Developers
- License :: OSI Approved :: BSD License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Internet :: WWW/HTTP :: Dynamic Content
- Topic :: Multimedia :: Graphics
- Package Index Owner: originell
- DOAP record: django-kittenstorage-1.0.0.xml
