How to display search results in html with django #21484
-
Hello, I am writing a search app that returns a movie from ghibli studio once you search for the title. The app it’s connected to the ghibli API and it works because whenever I type the title in the search bar, I get the result back but Only in my terminal. I need to display the results in the html but what I’ve tried so far has not worked.
This doesn’t work. This is my view:
This is my html:
Any help would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
What’s the
micaelagimenez:
block for? Your context doesn’t seem to contain a
would make more sense. 😉 |
Beta Was this translation helpful? Give feedback.
-
Whoa, it was that easy! It worked! Thank you so much 😄 |
Beta Was this translation helpful? Give feedback.
-
Would you happen to know how I can display the result in the same way it appears in my movie_data dictionary?
|
Beta Was this translation helpful? Give feedback.
-
That should work in principle, try capitalizing the same way as in the |
Beta Was this translation helpful? Give feedback.
-
Thank you so much again! That solved it! 😄 |
Beta Was this translation helpful? Give feedback.
That should work in principle, try capitalizing the same way as in the
movie_data
dict (e.g.{{ movie.Title }}
).