django plural for templates -


how django realize singular form of countries country , not countrie

from docs, if have template variable called num_countries, write like:

countr{{ num_countries|pluralize:"y,ies" }} 

Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

email - PHP Mail Error "The Page at X Says: E-Mail can not be sent!" -

Optimized Line drawing in QT -