Re: Debugging Why CSS File Will Not Load
On Wed, Feb 2, 2011 at 7:55 PM, octopusgrabbuswrote: > 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 > > > DocumentRoot /usr/local/www/documents/static > > > > 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 > > > {% block title %}Town of Arlington Water Department AMR > System{% endblock %} > > > > > 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.
Re: Debugging Why CSS File Will Not Load
Firebug shows the page, and the page changes to the color I set, if I click on sections in the Firebug window. Not sure what is going on with that. On Feb 2, 5:31 pm, Jon Jwrote: > Firebug is a great tool for diagnosing problems like this, and > Chromium has even better functionality built in! > > This problem is being caused by an improper configuration setting, IMO. > > Also, the preferred method of deployment is to use the same virtual > host and create an Alias directive for /media > > On Wed, Feb 2, 2011 at 1:21 PM, Eric Chamberlain wrote: > > Your port numbers don't match. > > > What does Firebug or some other html debug tool say about the file? > > > On Feb 2, 2011, at 10:55 AM, octopusgrabbus 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 > >> > > >> DocumentRoot /usr/local/www/documents/static > > >> > > >> 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 > > >> > >> {% block title %}Town of Arlington Water Department AMR > >> System{% endblock %} > >> > > >> > > >> and the appropriate lines from settings.py > > >> # URL that handles the media served from MEDIA_ROOT > >> MEDIA_URL = 'http://steamboy:8082' > > >> 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 > >> athttp://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 > > athttp://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.
Re: Debugging Why CSS File Will Not Load
Thanks. I was trying to hide the port. They're all the same for real, 8082. On Feb 2, 2:21 pm, Eric Chamberlainwrote: > Your port numbers don't match. > > What does Firebug or some other html debug tool say about the file? > > On Feb 2, 2011, at 10:55 AM, octopusgrabbus 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 > > > > > DocumentRoot /usr/local/www/documents/static > > > > > > 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 > > > > > {% block title %}Town of Arlington Water Department AMR > > System{% endblock %} > > > > > > > > and the appropriate lines from settings.py > > > # URL that handles the media served from MEDIA_ROOT > > MEDIA_URL = 'http://steamboy:8082' > > > 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 > > athttp://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.
Re: Debugging Why CSS File Will Not Load
Firebug is a great tool for diagnosing problems like this, and Chromium has even better functionality built in! This problem is being caused by an improper configuration setting, IMO. Also, the preferred method of deployment is to use the same virtual host and create an Alias directive for /media On Wed, Feb 2, 2011 at 1:21 PM, Eric Chamberlainwrote: > Your port numbers don't match. > > What does Firebug or some other html debug tool say about the file? > > > > On Feb 2, 2011, at 10:55 AM, octopusgrabbus 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 >> >> >> DocumentRoot /usr/local/www/documents/static >> >> >> >> 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 >> >> >> {% block title %}Town of Arlington Water Department AMR >> System{% endblock %} >> >> >> >> >> and the appropriate lines from settings.py >> >> >> # URL that handles the media served from MEDIA_ROOT >> MEDIA_URL = 'http://steamboy:8082' >> >> >> 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. > > -- 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.
Re: Debugging Why CSS File Will Not Load
Your port numbers don't match. What does Firebug or some other html debug tool say about the file? On Feb 2, 2011, at 10:55 AM, octopusgrabbus 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 > > > DocumentRoot /usr/local/www/documents/static > > > > 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 > > >{% block title %}Town of Arlington Water Department AMR > System{% endblock %} > > > > > and the appropriate lines from settings.py > > > # URL that handles the media served from MEDIA_ROOT > MEDIA_URL = 'http://steamboy:8082' > > > 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.