to help with this kind of thing I have added the following to the end  
of main urls.py

    (r'^(?P<path>.*)$', 'django.views.static.serve',  
{'document_root': '/magik/zilbo/htdocs/' } ),


which is telling django if you don't match something, just try and  
serve a file.

in my apache config I force it to serve the images/js/css files  
beforehand, so that regex
will never get executed in production.

my apache config is here: http://svn.zyons.python-hosting.com/trunk/ 
zilbo/conf/zyons.conf


On 10/06/2006, at 9:04 AM, Guillermo Fernandez Castellanos wrote:

>
> Hi,
>
> I'm developping an (several?) applications with Django, and I use the
> development webserver.
>
> It works great, besides a tiny problem: the django dev webserver
> doesn't seem to serve static files (i.e. js, images, css etc..),
> except for urls in the built-in admin server. Is it the intended way
> of working?
>
> I, of course, defined MEDIA_ROOT and left the MEDIA_URL blank.
>
> I've been searching django site and googling for an answer but found
> nothing yet...
>
> Thanks,
>
> G
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to