Sunday, August 2, 2020

Re: Advice please.

Hi,

You have 2 options:

1. You can use choices 
2. You can store data in a model, and then link with a foreign key.

First option is suitable for that data which wont change regularly e.g gender..For data that changes or need to be updated regularly,  then use second option.

On Mon, 03 Aug 2020, 02:21 Hector Berrones, <hector@getin2web.com> wrote:
Hi Bros,

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.

Thanks in advance for reading me.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFFaoU%2BvDpH%3DUxLs-uVQfbskMTuv-NXhwMvQ9%2Biua65B75MnAw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJaKOscj-%3D9t0dd2myXJ%3D-_MCw6tZrO8npYO2W483NWWLK36og%40mail.gmail.com.

No comments:

Post a Comment