Jun-18-2020, 04:54 AM
(This post was last modified: Jun-18-2020, 04:54 AM by card51shor.)
OK I'm figuring it out. Right now I am able to print the information out on the screen using this code:
I know I can copy the template you showed with the username as the url...however, I'm having trouble with the syntax of the <a href="">. I have to put {{i}} as the url but I'm getting all sorts of errors.
I tried <a href="{{i[0]}}"></a>. I tried without the quotes, etc.
What is the best way to go about this? Thanks guys.
<ul id="results"> {% for i in search %} <li>{{i}}</li> {% endfor %} </ul>Only problem is, I need to create a link for each individual item on the list that has it's own page.
I know I can copy the template you showed with the username as the url...however, I'm having trouble with the syntax of the <a href="">. I have to put {{i}} as the url but I'm getting all sorts of errors.
I tried <a href="{{i[0]}}"></a>. I tried without the quotes, etc.
What is the best way to go about this? Thanks guys.