* johnny wrote, On 12.02.2007 04:37: > Do you keep your frontend related css,js file in separate folder other > than admin (My assumption is admin, is the BACKEND)?
Admin is just another application, don't mix your media files with admins. > > I am confused with: > > ADMIN_MEDIA_PREFIX This is the location which host media files for the Django admin app only. This way you can serve admin data from the one place for the many different projects. i.e. <apache vhost adminmedia.example.com> ------------------------------------ DocumentRoot /usr/local/src/django/django/contrib/admin/media settings.py ----------- ADMIN_MEDIA_PREFIX = 'http://adminmedia.example.com' > SITE_MEDIA ?? This is not standard Django configuration > MEDIA_ROOT Physical path to the media files, used with FileField, ImageField as a base for storing uploaded files. > MEDIA_URL Location which is serving your media files (usually point to the same physical path as MEDIA_ROOT). i.e. <apache vhost> -------------- [other site setup] Alias /media/ /my/projec/media settings.py ----------- MEDIA_URL = '/media/' MEDIA_ROOT = '/my/projec/media' Hope that helps. -- Nebojša Đorđević - nesh, ICQ#43799892 Studio Quattro - Niš - Serbia http://studioquattro.biz/ | http://trac.studioquattro.biz/djangoutils/ Registered Linux User 282159 [http://counter.li.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---