On Mon, 2006-08-28 at 12:12 -0700, casibbald wrote:
> I have added the details from static_files example as follows:
[...]
> if settings.DEBUG:
>     urlpatterns += patterns('',
>         (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
> {'document_root': '/var/www/vhosts/opentelcom.org/openbilling/media'}),
>     )

[...]
> and i still get this output in my console.
> 
> Django version 0.95, using settings 'openbilling.settings'
> Development server is running at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
> [27/Aug/2006 17:16:56] "GET /polls/ HTTP/1.1" 200 4016
> [27/Aug/2006 17:16:56] "GET /stylesheets/base.css HTTP/1.1" 404 2270
> [27/Aug/2006 17:16:56] "GET /images/logo.gif HTTP/1.1" 404 2255

It looks like you have set up your url configuration to send things
under the site_media/ path to the static media serving component, but
your URLs are for things under stylesheets/ and images/. You need to
tell Django what the paths are that it is expected to respond to for
static media. The "static_media" string in the documentation is not
special or anything -- it's just an example.

Regards,
Malcolm


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