I want to save MoneyField details in setting.py file so I can use it every places where I use MoneyField I want to save this..
MoneyField(max_digits=10, decimal_places=2, default_currency='INR', null=False, default=0.0)
How can save it in settings.py
Django uses a setting named
DEFAULT_CURRENCYto set the currency, the default is'XYZ'. Indeed, if we look at the source code [GitHub], we see:You thus can set the
DEFAULT_CURRENCYin thesettings.pyto:and the omit the
default_currency='INR'parameters when you createMoneyFields.