1
I’m new to the subject, so forgive the ignorance.
I am developing an application using python in Django, where from user informed data the application will return certain values.
But I am in doubt where I put my mathematical formulas. If I can put inside the models.py folder and create a function within the class.. for example:
class Consumo(models.Model):
media_anual = models.CharField('Média anual de consumo', max_length=5)
(...)
def formula1:
(...)
if anyone can help, thank you
Thank you so much! I’ll do it this way, thank you so much
– Franco Motta