On Wed, Feb 2, 2011 at 7:55 PM, octopusgrabbus <old_road_f...@verizon.net> wrote: > I am trying to load static content (one css file) from the same apache > server, using a different virtual host. I have no errors, but the css > file appears not to load. How can I debug this further? > > The load shows up in /var/log/apache2/other_vhosts_access.log: > > Here are settings from httpd.conf. > > Listen 12345 > <VirtualHost _default_:12345> > > DocumentRoot /usr/local/www/documents/static > > </VirtualHost> > > I am loading the PageStyle.css file from a template. The css file is > in the static directory: > > Here is base.html that loads PageStyle.css > > <head> > <title>{% block title %}Town of Arlington Water Department AMR > System{% endblock %} </title> > <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}/ > PageStyle.css" /> > > </head> > > and the appropriate lines from settings.py > > > # URL that handles the media served from MEDIA_ROOT > MEDIA_URL = 'http://steamboy:8082' >
First, I'd check if the apache is working, if you go to http://steamboy:8082/PageStyle.css Do you see the CSS? Also, what you see when you see the HTML source code? Is that URL? See you, Andres > > PageStyle.css is set to display Windows Gray 0x808080. > > > > > other_vhosts_access.log > > -- > 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. > > -- 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.