py27-django-appmedia-1.0.1.tgz


Advertisement

Description

py27-django-appmedia - Handling django app media

Property Value
Distribution NetBSD 7.0
Repository NetBSD i386
Package filename py27-django-appmedia-1.0.1.tgz
Package name py27-django-appmedia
Package version 1.0.1
Package release -
Package architecture i386
Package type tgz
Category python www
Homepage https://github.com/divio/django-appmedia
License modified-bsd
Maintainer -
Download size 40.85 KB
Installed size 242.05 KB
The intention of this application is to enable static app files (css, js, pics)
in the app folder itself.
<application1>/media/<application1>/js/script.js
<application2>/media/<application2>/js/script.js
<project>/media/logo.jpg
To use this view in development you should add something like the following to
urls.py:
if settings.DEBUG:
urlpatterns += (r'^media/(?P<path>.*)$', 'site.media.serve_apps',
{'document_root' : settings.MEDIA_ROOT})
For deployment there is a managament command called `symlinkmedia` that will
create symlinks to each applications media directory in `MEDIA_ROOT`.
Now all apps in INSTALLED_APPS that have a "media" directory in them will be
reachable as '/media/<application_name>/'.
You can then have the admin media files served by setting
ADMIN_MEDIA_PREFIX = '/media/admin/'

Alternatives

Package Version Architecture Repository
py27-django-appmedia-1.0.1.tgz 1.0.1 amd64 NetBSD
py27-django-appmedia - - -

Requires

Name Value
py27-django -
py27-setuptools >= 0.8
python27 >= 2.7.1nb2

Download

Type URL
Mirror ftp.netbsd.org
Binary Package py27-django-appmedia-1.0.1.tgz
Source Package py27-django-appmedia

Install Howto

Install py27-django-appmedia tgz package:

# pkg_add py27-django-appmedia

See Also

Package Description
py27-django-celery-beat-1.4.0.tgz Database-backed Periodic Tasks
py27-django-classy-tags-0.8.0.tgz Class based template tags for Django
py27-django-cms-3.5.3.tgz Django content management system
py27-django-cmsplugin_gallery-1.0.1.tgz DjangoCMS image gallery plugin
py27-django-contrib-comments-1.9.1.tgz Framework to attach comments to any Django model
py27-django-cors-headers-2.5.2.tgz Django application for handling headers required for CORS
py27-django-countries-5.3.3.tgz Provides a country field for Django models
py27-django-easy-thumbnails-2.5.tgz Easy thumbnails for Django
py27-django-extensions-2.1.6.tgz Extensions for Django
py27-django-filer-1.4.0.tgz File management application for Django
py27-django-formtools-2.1.tgz Collection of assorted utilities for specific form use cases
py27-django-import-export-1.2.0.tgz Django application and library for importing and exporting data
py27-django-inline-ordering-1.0.2.tgz Django app to ease ordering of related data
py27-django-js-asset-1.2.2.tgz Script tag with additional attributes for django.forms.Media
py27-django-kronos-1.0.tgz Django application to define and schedule tasks with cron
Advertisement
Advertisement