Quick update: I can see the directory listing under http://mydomain.com/media/


On Jan 30, 10:22 am, DrKayBee <bhalera...@gmail.com> wrote:
> I'm having a ridiculously tough time trying to figure out how to serve
> static media. Here's the state of the website:
> Templates being found properly (although without css / static media)
> Admin template being found properly (again without css / etc)
>
> Here's my directory structure for the project:
>
> /home/path/to/my/project/
> --->      application/
> --->      Media/  (Static files directory)
>                       default.css
>                       *.img etc
>       --->          admin/
>       --->                 media/ ---symlink--> /usr/lib/......contrib/
> admin/media/
>             |---->              css/ js/ img/ (through symlinks)
>
>              templates/
>              manage / settings / urls.py files
>
> Here's my httpd.conf
> <Location "/">
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE project.settings
> SetEnv PYTHON_EGG_CACHE "/var/cache/www/pythoneggs"
> PythonDebug On
> PythonOption django.root /project
> PythonPath "['/home/path/to/project/'] + sys.path" (sanitized link)
> </Location>
>
> <Location "/media">
>     SetHandler None
> </Location>
>
> <Location "/svn">
>     SetHandler None
> </Location>
> _______________________
>
> and here's my settings.py symbols
> MEDIA_ROOT = '/home/path/to/project/Media/' (sanitized)
> MEDIA_URL = '/media/' (# does this need to be an absolute url?)
> ADMIN_MEDIA_PREFIX = '/admin/media/'
>
> So where am I messing up?
> Your response is much appreciated. Thanks!
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to