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

Yandex.Fotki files backend for django

Project Description

Welcome to django-yafotki github page. Django-yafotki provides access to Yandex.Fotki picture storage from Django.
This repository cloned from Author - Serge A Makarov.


Get source code from github

git clone git://

or install using pip

pip install -e git+

Add the django-yafotki/yafotki folder to your PYTHONPATH or install with

Add your Yandex account info into

'username': 'your_yandex_account_name',
'token': 'your_token'

You can obtain token by following instructions at page

Add Yandex.Fotki field to your model

from yafotki.fields import YFField
class MyModel(models.Model):
yandex_fotki_image = YFField(upload_to='album_name')

Using in views and templates

Use MyModel.yandex_fotki_image.src attribute for access to image source.

<img src="{{ img.yandex_fotki_image.src }}" />

If you can access to different image sizes use MyModel.yandex_fotki_image.src_100, for access 100px width image, and MyModel.yandex_fotki_image.src for original image size

<img src="{{ img.yandex_fotki_image.src_100 }}" width="100" /> <!-- 100px width image -->
<img src="{{ img.yandex_fotki_image.src_300 }}" width="300" /> <!-- 300px width image -->
<img src="{{ img.yandex_fotki_image.src }}" /> <!-- Original image widht -->
Release History

Release History

This version
History Node


History Node


History Node


History Node


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 (8.2 kB) Copy SHA256 Checksum SHA256 Source Jun 2, 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