pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-django-appmedia

Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Feb 17 18:07:29 UTC 2011

Update of /cvsroot/pkgsrc/www/py-django-appmedia
In directory

Log Message:
The intention of this application is to enable static app files (css, js, pics)
in the app folder itself.

To use this view in development you should add something like the following to
        if settings.DEBUG:
          urlpatterns += (r'^media/(?P<path>.*)$', '',
          {'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/'


Vendor Tag:     TNF
Release Tags:   pkgsrc-base
N pkgsrc/www/py-django-appmedia/DESCR
N pkgsrc/www/py-django-appmedia/distinfo
N pkgsrc/www/py-django-appmedia/Makefile
N pkgsrc/www/py-django-appmedia/PLIST

No conflicts created by this import

Home | Main Index | Thread Index | Old Index