Graham Dumpleton a écrit : > Do what has been suggested with using something like live http > headers, but in particular pay close attention to the Content-Type > header being returned for static files served from your /media > directory. When using Apache the content types for such files will be > dictated by Apache configuration and/or associated mime type files. It > is possible that Django in standalone mode returns something a little > different if it is serving up the static files in that case.
thanks for both of your replies. I used wireshark (previously known as ethereal) to follow the HTTP stream (being a low-level type of guy, i tend to use low-level type of tools :) ). Saw that the js files were returning 404's, even though the css's weren't... It turns out i made a mistake in the apache/mod_python config. Because i serve multiple top-level urls from django, i use LocationMatch instead of Location, like so: <LocationMatch "/(blog|admin|comments|rss|i18n)/"> SetHandler python-program PythonHandler django.core.handlers.modpython PythonInterpreter wwd SetEnv DJANGO_SETTINGS_MODULE wwd.settings PythonDebug On PythonPath "['/var/www/django','/var/www/django-projects'] + sys.path" </LocationMatch> well, the regex also catches, e.g., /media/js/admin/DateTimeShortcuts.js even though media is normally served statically. It doesn't catch the css media, though, because it's not in admin. Changing the regex to this: <LocationMatch "^/(blog|admin|comments|rss|i18n)/"> solves the problem nicely. PS: i use apache+mod_python simply because i have a few other apps that are raw mod_python, so i need apache+mod_python anyways - i might a well use it for django, too. -- ______________________________ Eric St-Jean [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---