Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- djangoにjinja2のテンプレートを組み合わせた時、以下のようにURLをテンプレートに埋め込む
- url.py
- ```
- url(r'/index/$', index_view, name="main-view"),
- ```
- template.jinja
- ```
- <a href="{{ url('main-view') }}"
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement