Skip to content

Conversation

@yodiaditya
Copy link

When I debug "path" value, I see uri not have "media" or "static" but in Django template it use {{ STATIC_URL }} and {{ MEDIA_URL }} :

On template:

static/apps/images/logo.png 

On "uri" result:

apps/images/logo.png 

I don't know why this happen, but I suggest to check given uri is exists in MEDIA_ROOT or STATIC_ROOT before showing Exception.

Anyway, using this patch, django-xhtml2pd works perfectly on Django 1.3.1.

Thanks

xrmx pushed a commit to xrmx/django-xhtml2pdf that referenced this pull request Oct 15, 2012
@luisza luisza closed this May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants