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
Template imported/rendered twice #391
Comments
Looking at how If you can reproduce it, please create a full testcase showing the issue (and put it e.g. in a Git repo). |
Had the same issue on arch linux with python 3.4.2 The PackageLoader constructor is running the whole script a second time, it's not 2 prints in the script itself.
The documentation was a little misleading there ;) |
I have the same issue on Ubuntu 14.04 with Python 2.7.11, Jinja2 2.8 and Flask 0.11.1. Note: this happens only when I open some page first time after restart of the server! When I update page - templates are loaded once. |
This is equivalent to creating a file data = "foo"
import example
print(data)
If you set up a real package with |
I am just getting started with jinja2 and I ran into a really weird issue, also described on issue #255 (closed, but there was no followup by the reporter).
I'm on Windows 7 x64 running Python 3.4.1
I installed jinja2 with "easy_install Jinja2"
I have a ...\jinja2-test\jinja2-test.py containing this:
and a template ...\jinja2-test\templates\mytemplate.html
on the command line I do: python jinja2-test.py and the templates are listed and rendered twice:
The text was updated successfully, but these errors were encountered: