Skip to content
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

TypeError must be str, not bytes #36

Open
ghost opened this issue Jul 3, 2018 · 2 comments
Open

TypeError must be str, not bytes #36

ghost opened this issue Jul 3, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2018

You do a nice job with django-inlinecss.

I have a question, when I try to send the email with django-inlinecss it appears the following error: "TypeError must be str, not bytes" in line "{% inlinecss" demo / demo.css "%}". How can I fix this error? Thank you very much and sorry to bother you.

@celestinosalim
Copy link

you found an answer ? I'm having the same issue

@brendanwood
Copy link

I had the same problem, it was caused by Django not being able to locate the css file for inlining. Check that the path you gave is correct and make sure that your static files are being correctly served for whatever your DEBUG mode is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants