A reusable Django application to store and manage media. This application was originally created by Nathan Borror for django-basic-apps, his collection of simple prebuilt Django applications.
Models are included for storing audio, photos, and video, as well as sets of these three objects. URLs (using generic views) and templates are included for displaying these objects.
- Python Imaging Library is required for getting photo EXIF data.
django-media is available on PyPI and can be installed with PIP.
pip install django-media
Alternatively, you may download the source and install it.
python setup.py install
Add media
to your settings.INSTALLED_APPS
.
If you wish to use the default URL structure, you may do so by adding them to your project's URL patterns. For example:
urlpatterns = patterns('',
...
(r'^photos/', include('media.urls.photos')),