Tuesday, August 27, 2019

Re: views and manager files according to MVT design pattern

On 28/08/2019 4:01 am, Alejandro Cuara wrote:
> Hi,
> I would like to know if does make sense to split my views.py file into
> multiple view files
> trying to have a project better organized and the same for my
> manager.py file because i noticed that
> they have grown a lot, from my perspective it make sense to be align
> better with the MVT design pattern
> but I would like to know the recommendation from the official
> documentation or the experts in this matter.
>

I'm no expert but I have views in a single file in some apps and in a
views directory and multiple files in other apps. This happened
gradually for me as the views.py file grew.

Nowadays, I move to multiple files earlier than before because it suits
my brain better. And I don't use an IDE but prefer a plain text editor.

It is totally your call in your circumstances.


> Thanks in advance.
> --
> 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
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ec8fb034-dd09-4de2-a61d-29563a671f55%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ec8fb034-dd09-4de2-a61d-29563a671f55%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/ed16b7fa-fba1-db43-04c6-7e8bda6fdeaf%40dewhirst.com.au.

No comments:

Post a Comment