Coder Social home page Coder Social logo

django-cumulus's Introduction

Django Cumulus

Django Cumulus provides an interface to Mosso Cloud Files through the Django admin interface.

Currently, this consists of a custom storage backend and a helper function.

Installation

  1. git clone git://github.com/richleland/django-cumulus.git
  2. Run "python setup.py install" from within the django-cumulus folder
  3. Add the following to your project's settings.py file:

    CUMULUS_USERNAME = 'YourUsername'
    CUMULUS_API_KEY = 'YourAPIKey'
    CUMULUS_CONTAINER = 'ContainerName'
    DEFAULT_FILE_STORAGE = 'cumulus.storage.CloudFileStorage'
  4. Then implement the custom upload_to in your models.py file:

    from cumulus.utils import cumulus_upload_to
    
    class SomeKlass(models.Model):
        some_field = models.ImageField(upload_to=cumulus_upload_to)

Alternatively, if you don't want to set the DEFAULT_FILE_STORAGE, you can do the following in your models:

from cumulus.storage import CloudFileStorage
from cumulus.utils import cumulus_upload_to

cloudfiles_storage = CloudFileStorage()

class SomeKlass(models.Model):
    some_field = models.ImageField(storage=cloudfiles_storage,
                                   upload_to=cumulus_upload_to)

Planned Features

  • Clone of Mosso's Cloud Files interface within the Django admin
  • Implementation of the Cloud Files pseudo-subdirectories
  • Multi-container support, possibly in the form of a custom widget
  • Push metadata with each file

Requirements

  1. Mosso's Cloud Files python module http://www.mosso.com/cloudfiles.jsp

TODOs and BUGS

See: http://github.com/richleland/django-cumulus/issues

django-cumulus's People

Contributors

richleland avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.