pkgsrc/www/py-django-appmedia/PLIST
adam 43e9bddb89 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/'
2011-02-17 18:07:29 +00:00

39 lines
1.6 KiB
Text

@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/17 18:07:29 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/appmedia/BeautifulSoup.py
${PYSITELIB}/appmedia/BeautifulSoup.pyc
${PYSITELIB}/appmedia/BeautifulSoup.pyo
${PYSITELIB}/appmedia/__init__.py
${PYSITELIB}/appmedia/__init__.pyc
${PYSITELIB}/appmedia/__init__.pyo
${PYSITELIB}/appmedia/api.py
${PYSITELIB}/appmedia/api.pyc
${PYSITELIB}/appmedia/api.pyo
${PYSITELIB}/appmedia/management/__init__.py
${PYSITELIB}/appmedia/management/__init__.pyc
${PYSITELIB}/appmedia/management/__init__.pyo
${PYSITELIB}/appmedia/management/commands/__init__.py
${PYSITELIB}/appmedia/management/commands/__init__.pyc
${PYSITELIB}/appmedia/management/commands/__init__.pyo
${PYSITELIB}/appmedia/management/commands/buildmedia.py
${PYSITELIB}/appmedia/management/commands/buildmedia.pyc
${PYSITELIB}/appmedia/management/commands/buildmedia.pyo
${PYSITELIB}/appmedia/management/commands/symlinkmedia.py
${PYSITELIB}/appmedia/management/commands/symlinkmedia.pyc
${PYSITELIB}/appmedia/management/commands/symlinkmedia.pyo
${PYSITELIB}/appmedia/middleware.py
${PYSITELIB}/appmedia/middleware.pyc
${PYSITELIB}/appmedia/middleware.pyo
${PYSITELIB}/appmedia/models.py
${PYSITELIB}/appmedia/models.pyc
${PYSITELIB}/appmedia/models.pyo
${PYSITELIB}/appmedia/urls.py
${PYSITELIB}/appmedia/urls.pyc
${PYSITELIB}/appmedia/urls.pyo
${PYSITELIB}/appmedia/views.py
${PYSITELIB}/appmedia/views.pyc
${PYSITELIB}/appmedia/views.pyo