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

With werkzeug branch, request.is_xhr missing, _('string') will get NameError: name '_' is not defined #49

Closed
zhangchunlin opened this issue Jun 3, 2021 · 2 comments

Comments

@zhangchunlin
Copy link
Contributor

zhangchunlin commented Jun 3, 2021

With werkzeug branch, request.is_xhr missing, _('string') will get NameError: name '_' is not defined

@zhangchunlin
Copy link
Contributor Author

zhangchunlin commented Jun 4, 2021

issue49.zip
"name '_' is not defined" look not because of werkzeug branch, but is_xhr is.

@limodou
Copy link
Owner

limodou commented Dec 22, 2021

global_objects just set attributes to uliweb module, but not to template env. You can use dispatch.call(self, 'prepare_view_env', local_env) this hook to register global template environment variables.

@limodou limodou closed this as completed Dec 22, 2021
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