Message in stderr is breaking django-mjml
See original GitHub issueThe fix to issue #1342 released in version 4.2.1 is breaking django-mjml template engine.
If using mjml v3 the message MJML v3 syntax detected, migrating to MJML v4 syntax. Use mjml -m to get the migrated MJML.
is shown in stderr now, making django-mjml fail to render the template because it considers that any output in stderr an error running the command.
With mjml v4.2.0 it works just fine.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Developers - Message in stderr is breaking django-mjml -
Message in stderr is breaking django -mjml. ... a change that moves all messages from stdout to stderr to prevent these being mixed...
Read more >How to make a new line in django messages.error
I have a line of my code messages.error(request, ('ERROR: upload failed ...
Read more >How to manage error reporting | Django documentation
When DEBUG is False , Django will email the users listed in the ADMINS setting whenever your code raises an unhandled exception and...
Read more >django-mjml - PyPI
Install django-mjml. $ pip install django-mjml. If you want to use API HTTP-server you also need requests (at least version 2.24):
Read more >facebook Code Example - Code Grepper
It doesn't seem to be a Python package or a valid path to a data directory. ... CocoaPods could not find compatible versions...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had this problem recently, the solution was to remove
mj-container
as mentioned here #1342 by @iRyusaHi @ngarnier, I disagree with this -
stdout
should only be used for the actual output (so that you can redirect it to a file, and be sure you aren’t sending your users an email with validation messages).All diagnostic output should go to
stderr
, and I propose to add setting to select verbosity (warnings and errors, or errors only).