Skip to main content

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

Project details


Download files

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

Source Distribution

django-media-library-0.3.7.tar.gz (39.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page