Answer the question
In order to leave comments, you need to log in
Django or Flask: store default values in page or database?
Hello all toasters!
I am developing a website. There are a lot of empty defaults on the profile page. There are two options:
Answer the question
In order to leave comments, you need to log in
I can’t say for sure about alchemy, but in jang the default value in the model can be a lambda.
Those are not stored in the database
. And the wording itself
not always convenient, the field can be no more than 6 characters, and the default value exceeds this lengthlooks ridiculous
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question