You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to show all countries with flags in a html page but failed. Anyone has solution?
<!-- example.html -->
{% load static %}
<linkrel="stylesheet" href="{% static 'flags/sprite-hq.css' %}">
{% load countries %}
{% get_countries as countries %}
{% for country in countries %}
<p><iclass="{{ country.flag_css }}"></i>{{ country.name }}</p>
{% endfor %}
This discussion was converted from issue #440 on March 27, 2024 03:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to show all countries with flags in a html page but failed. Anyone has solution?
Reference:
Beta Was this translation helpful? Give feedback.
All reactions