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

Add default to site_template_base_dir context_processor #162

Closed
ephes opened this issue Sep 6, 2024 · 0 comments
Closed

Add default to site_template_base_dir context_processor #162

ephes opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ephes
Copy link
Owner

ephes commented Sep 6, 2024

If there are no wagtail sites the site_template_bas_dir context_manager raises an DoesNotExist-Exception. This is bad if django-cast is used in one part of a site, but does not get used in another part. View tests for the non django-cast non wagtail part will run into this since they don't need a wagtail site.

Workaround: Make the context_processor pass even if there are no wagtail sites and set the base template dir name to a "does_not_exist" default.

@ephes ephes self-assigned this Sep 6, 2024
@ephes ephes added the bug Something isn't working label Sep 6, 2024
ephes added a commit that referenced this issue Sep 6, 2024
@ephes ephes closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant