Skip to content

Commit 75b0310

Browse files
committed
Update README for url_for
1 parent db22152 commit 75b0310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ If for some reason, `appyter` doesn't end up discoverable in your PATH, you can
3131
- Custom jinja2 filters can be added if necessary
3232
- `./filters/your_filter.py`: Python jinja2 filter (function)
3333
- Custom externally-referenced resources (i.e. images) can be put under the static directory
34-
- `./static/img/your_image.png`: Reference in templates with `{% static 'img/your_image.png' %}`
34+
- `./static/img/your_image.png`: Reference in templates with `{{ url_for('static', path='img/your_image.png') %}` when expected to be displayed on the site
35+
- `./static/python_file.txt`: Reference in templates with `{{ url_for('static', path='python_file.txt', public=True) }}` when expected to be available when running the appyter
3536
- Custom blueprints to additionally mount with flask
3637
- `./blueprints/your_app/__init__.py`: `your_app = Blueprint('your_app', __name__)`
3738

0 commit comments

Comments
 (0)