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 'django.template.context_processors.request' to TEMPLATES #540

Merged

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Mar 7, 2024

See discussion from https://forum.image.sc/t/microscope-metrics-under-development/91624/8 onwards.

It seems that some Django apps expect this context processor to be in settings, and indeed it is present in the default django settings - see:
https://docs.djangoproject.com/en/4.2/ref/templates/api/#using-requestcontext

Without this, the app discussed above needs to hard-code this setting by writing to the settings.py before deployment in Docker - see https://github.com/Wapaa/OMERO-metrics/blob/5f4bc180431703973558d8176614f4c605b5e2b0/test/omero-web/Dockerfile#L13

@will-moore will-moore requested a review from knabar April 19, 2024 12:17
@will-moore will-moore merged commit e1b1355 into ome:master Apr 23, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants