Friday, October 1, 2010

Re: Separating application media from project media

> FWIW, even for a more canonical "integrated" website / webapp composed
> of distinct django apps, "assets" (app specific css, js, images and
> whatnot) management can sometimes be a pain. My own solution so far is
> to keep all app-specific static stuff in a /medias/<appname> subir of
> the app and manually symlink this to the project's /static dir, but
> I'd really enjoy a better solution.

In the past I have used django-staticfiles to manage static media for
various apps. django-staticfiles searches your installed apps for
media directories and copies them to a site_media directory so that
you can serve them from a web server. It also allows you to manage
uploaded media separately from static files.

http://pypi.python.org/pypi/django-staticfiles/

--
Ian

http://www.ianlewis.org/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment