10π
I found an answer β the reason for that error is my incompetence :). I ran django-admin makemessages
command in the root of my project, so next to _env and all the packages inside. This command created language files for a couple of projects with the default django.po file template, so they contained something like plural-forms=INTEGER
and other stuff and this was causing the above error.
3π
Here I will give you all the details about Plural-forms:
See this link Plural-forms.It will helps to you.
Note:This just link give a simple idea about plural
It surely helps to others
- Form validation in django
- Django admin filter using F() expressions
- Using a custom form in a modelformset factory?
- How to layout a queue/worker structure to support large tasks for multiple environments?
1π
Your plural expression (n != 1)
is most likely considered dangerous because itβs too inclusive. n doesn't equal 1
means any value except 1
will evaluate to True
including booleans, strings or None
.
Try changing your expression to use equals, greater than and less than operations to narrow down the scope of the expression.
- Multiple sites using Django and mod_wsgi on Apache
- Run bash script with Django
- PyCharm doesn't autocomplete Django model queries anymore in 2016.1.2
- DRF test client unable to post list of JSON