Name |
Last commit
|
Last update |
---|---|---|
.. | ||
assets | ||
assets2/css | ||
tests | ||
__init__.py | ||
models.py | ||
settings.py | ||
urls.py | ||
utils.py |
The current code inserts bytes into a string. In Python 3 those are different types, causing the URI to look like: url("data:image/png;charset=utf-8;base64,b'iVBORw0KGgoAAAANSUhEUgAAAA...'") Because Base64 data is always ASCII it is safe to decode it as such, and insert the resulting string, which causes the correct output: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAA...")
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
assets | Loading commit data... | |
assets2/css | Loading commit data... | |
tests | Loading commit data... | |
__init__.py | Loading commit data... | |
models.py | Loading commit data... | |
settings.py | Loading commit data... | |
urls.py | Loading commit data... | |
utils.py | Loading commit data... |