* Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-04-06 20:30 +0200]: > > Hello, > > With the development server, I use the following line to manage static > content : > > (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': '/var/www/nicolas/sites/NetPool/web/media/'}), > > But now, when I run my apps with Apache and FastCGI, it seems that my > requests > to site_media are not handled any more. > > Instead, apache try to read /var/www/site_media which doesn't exist. > > I'm running django 0.96. > > If you have an idea this would be really great to help me. > -- > Tourneur Henry-Nicolas
Have you looked at this: http://www.djangoproject.com/documentation/static_files/ If this still doesn't help, ask here again. Basically what you have to do is define the right locations for your static files, and then tell appache to handle them directly, i.e. not by your django application. You do this in the appache configuration file for your site, or in your site's .htaccess file. I just pointed in the general direction, ask again if this is not clear enough. --- Amit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---