New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using 'raw' without using 'save' gives no output #8
Comments
You probably want the def get(self, request, *args, **kwargs):
uuid = request.GET.get('uuid')
C39 = barcode.get_barcode_class('code39')
toserve = C39(uuid)
return HttpResponse(toserve.render(), content_type="image/svg+xml")` |
@WhyNotHugo UPDATE I did notice that the default should be |
I'm thinking about reintroducing a |
I can take a shot at that if you'd like! |
Give it a shot if you like; it'll be a while before I can address this myself. |
Given that Don't hesitate to leave a reply if you consider there's something I might have overlooked here. |
I think the title explains it all.
If I try to use .raw to server an SVG barcode without using .save first, I get an empty output...
Example:
Trying to serve this in my django project:
Gives the following output:
But serving this:
Gives the following output:
If someone can point me to where I should be looking I would gladly attempt to fix it!
The text was updated successfully, but these errors were encountered: