> <html>
> <head></head>
> <body>
> <div>
> <embed src="radial2.svg" width="100%" height="100%"
> type="image/svg+xml"
> pluginspage="http://www.adobe.com/svg/viewer/install/"
> />
> </div>
> </body>
> </html>
>
> This file works fine when I opened it with firefox, but dont work if
> the file is served by django server. The SVG image (radial2.svg) is
> not displayed.
Is this the production server or the dev server? Assuming the
SVG file is just more static media, so you'll want to read up on
that. If it's the production server, make sure that you have it
serving the static media instead of handing it off to Django. If
it's the development server, make sure that you're serving static
files. I usually do this with something like
if 'runserver' in argv:
urlpatterns += patterns('',
(r'^site_media/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': '../media'}
),
)
in my urls.py so that when I use the dev server, it also handles
static media.
If the SVG is dynamically created (yay, SVG!), make sure your
urls.py can find it and that you point to an appropriate view.
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---