Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

error message forrender_template outside app context#4693

Merged
davidism merged 1 commit intopallets:2.1.xfrom
Yourun-proger:msg_app_ctx
Jul 13, 2022
Merged

error message forrender_template outside app context#4693
davidism merged 1 commit intopallets:2.1.xfrom
Yourun-proger:msg_app_ctx

Conversation

@Yourun-proger
Copy link
Contributor

@Yourun-progerYourun-proger commentedJul 13, 2022
edited
Loading

When trying to use therender_template andrender_template_string functions outside of the context of an application, a silly None error occurs that does not tell the user that this function only works when there is a flask application. I just fixed it.
I decided not to create a problem report about this, because this seems to be a fairly simple and small matter. Plus it's just like#4333 , which I've already fixed. Sorry, if this is still necessary, I will immediately create this message so that everything goes "by the rules".

Checklist:

  • Add an entry inCHANGES.rst summarizing the change and linking to the issue.
  • Runpre-commit hooks and fix any issues.
  • Runpytest andtox, no tests failed.

@Yourun-proger
Copy link
ContributorAuthor

ah, give me a second, i'll fix docs

@davidism
Copy link
Member

This is no longer needed, it's completely refactored in 2.2.

@Yourun-proger
Copy link
ContributorAuthor

close?

@davidism
Copy link
Member

Eh, it can go in, I was about to release 2.1.3 anyway.

@davidismdavidism added this to the2.1.3 milestoneJul 13, 2022
@Yourun-proger
Copy link
ContributorAuthor

I hope you understand that I respect your opinion, so do as you see fit.

@davidismdavidism changed the titleAdd error messageerror message forrender_template outside app contextJul 13, 2022
@davidismdavidism merged commita7859c6 intopallets:2.1.xJul 13, 2022
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 30, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.1.3

Development

Successfully merging this pull request may close these issues.

2 participants

@Yourun-proger@davidism

Comments


[8]ページ先頭

©2009-2026 Movatter.jp