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!

A reusable Django app to let users organize their own media.

Project Description

A reusable Django app to let users organize their own media.

Note! Django 1.7 support is WIP.

If you intend to manage files like images, pdfs or simliar as an admin, you might be interested in django-document-library.

It enables users to upload images and add Vimeo or YouTube video links into their own gallery.

Installation

To get the latest stable release from PyPi

pip install django-media-library

To get the latest commit from GitHub

pip install -e git+git://github.com/bitmazk/django-media-library.git#egg=media_library

TODO: Describe further installation steps (edit / remove the examples below):

Add media_library and its dependencies to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'media_library',
    'multilingual_tags',
    'generic_positions',
    'user_media',
    'hvad',
)

Add the media_library, user_media and generic_positions URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^pos/', include('generic_positions.urls')),
    url(r'^umedia/', include('user_media.urls')),
    url(r'^media-library/', include('media_library.urls')),
)

If you stick to the default templates or want to derive your own from them, you might also want to add the default styles and our simple image and video preview script.

{% load static %}

<link href="{% static "media_libraray/media_library.css" %}" rel="stylesheet">
<script src="{% static "media_library/preview.js" %}"></script>

Add the django-user-media scripts to your templates to have the file upload.

{% load static %}

{# you will also need jquery and jquery-ui. #}
<script src="{% static "js/jquery-1.11.1.js" %}"></script>
<script src="{% static "js/jquery-ui-1.11.1.min.js" %}"></script>

{% include "user_media/partials/image_upload_scripts.html" %}

You can read up more information and advanced usage at the django-user-media page.

Don’t forget to migrate your database

./manage.py migrate

Usage

TODO: Describe usage or point to docs. Also describe available settings and templatetags.

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-media-library
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
Release History

Release History

This version
History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.1

History Node

0.2

History Node

0.1

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
django-media-library-0.3.7.tar.gz (39.8 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 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