On August 2, 2020 7:21:04 PM CDT, Hector Berrones <
hec...@getin2web.com> wrote:
>I have very little experience using django and I would like to know how
>would be the most conveniente way to store and manage the common data
>in a
>django proyect that would have several applications when I say common
>data I mean information about tables cities, Countries, Catalog
>Sections I
>mean information that usera can use select from a Select Field in for
>example.
>
For your model, if the data is relatively static, use a CharField with choices. If the data is likely to change often, use a model for each kind of data and link them together with ForeignKey.
Then in your ModelForm, either the CharField with choices or the ForeignKey will be shown as a ChoiceField which renders as a select input in your template.