[Answer]-Trouble displaying generated image in Django

1👍

It will be a better idea, to create your graph and store it in Media folder. You can then set your MEDIA_URL and MEDIA_ROOT. Django does not serve static file directly from the folders.

You can then configure your url.py to

from django.conf import settings
from django.conf.urls.static import static

urlpatterns = patterns('',
    # ... the rest of your URLconf goes here ...
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Leave a comment