开发者

How to properly collect and manage admin media files from django?

Collecting the admin-media files from different django application is one of the not-so-good things about django. Usually you have to file copying from the module distributions to your directory every time one you install/update/remove a module.

When you are using several django application that do have their own media/admin files, some of them even overriding others you need a proper way of collecting them and building a correct media directory.

A proper solution should be able to recreate the directory by collecting the required files from the modules in a specific order, allowing them to override each other.

Useful links

What solution do you have for this issue?


I just stack multiple Alias directives one on top of each other, grafting the media to the appropriate place on the tree.


For the moment the best solution I found was to use http://djangosnippets.org/snippets/1068/ but I'm still looking for better approaches.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜