question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method CMSPluginBase._get_render_template raises wrong exception

See original GitHub issue

In class CMSPluginBase the method _get_render_template raises a ValidationError, if the returned template is None. In my opinion the correct exception should be a TemplateDoesNotExist exception, since a ValidationError shall only be used to reject invalid form data.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Kaushal-Dhungelcommented, Sep 30, 2021

@NicolaiRidani I think I can get started with this one.

1reaction
jriefcommented, Sep 30, 2021

This should be rather easy to fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django-cms/plugin_pool.py at develop
raise ImproperlyConfigured(. "CMS Plugins must define a render template, ". "a get_render_template method or ". "set render_plugin=False: %s" % plugin. ).
Read more >
Plugins - django cms 3.11.0 documentation
The template used to render the form when you edit the plugin. Example: class MyPlugin(CMSPluginBase): model = ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found