Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 186 by pablo.platt: Best practices for media files
http://code.google.com/p/django-hotclub/issues/detail?id=186

jezdez explained on irc where to put media files and it could be helpful in
the documentation:

- When you want to override default media files, place yours under
myproject/media/... with the same path. For example:
original file:
src/pinax/media/default/pianx/images/logo.png
your file:
myproject/media/pinax/images/logo.png

- Site specific media files goes to:
myproject/media/siteExample.js

- App specifi media files goes to:
myproject/myapp/media/myapp/appExample.js
That "namespacing" is required to prevent name collision of media files
while running the build_media command

The special static file service view should be able to serve the media
files in development.
The build_media script should be able to collect the media files from pinax
and all the apps and arrange them under the myproject/site_media folder.

I didn't test it myself yet so if I made a mistake please comment.




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to