Closed pistatium closed 7 years ago
I want to pass a value of False to Django. For example, ?use_unicode=False.
False
?use_unicode=False
DATABASES['default']['OPTIONS']['use_unicode'] = 'False' #=> True
However, if you do this, it will be set as a character string as above.
Even if ?use_unicode=0, '0' is treated as True in Python, so it does not become the expected value.
?use_unicode=0
'0'
Is there a way to set False appropriately?
The best practice is to update this value manually after invoking dj-database-url.
I want to pass a value of
False
to Django. For example,?use_unicode=False
.However, if you do this, it will be set as a character string as above.
Even if
?use_unicode=0
,'0'
is treated as True in Python, so it does not become the expected value.Is there a way to set False appropriately?