Closed cyrlop closed 3 years ago
In the HTML templates, there are some "hard coded" urls:
<a href="/">
pointing to the "index" route (or view)<a href="/summoner">
pointing to the "summoner_form" route (or view)
But it's not a good practice to write the URLs like that directly in the templates, instead we can do:
<a href="{{url_for('index')}}"><!-- for the index view -->
<a href="{{url_for('summoner_form')}}"><!-- for the summoner_form view -->
Then it's easier to change the URLs later if needed (so far in main.py
)
I guess "more details required". I don't know what you mean here.