On Saturday 17 June 2017 13:11:17 A.S. Khangura wrote: > On Fri, Jun 16, 2017 at 8:39 PM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > > You do things in models. > > So that means all my ML models would be Django-Models?
Yes. Models should be a representation of the data and their interaction. > > You gather things in views. > > I will pass data and get results from functions to show on web-pages. Parameters you get from requests which are passed on through URLs. Session info can also be used to pass in data (which is tied to a cookie in the request). And finally HTTP headers may also provide information (such as the user's preferred languages). The basic job of a view is to return a request into a response. This is by nature a functional pattern, but there are also class-based-views[1], which make sharing common functionality a lot easier. -- Melvyn Sopacua -------- [1] https://docs.djangoproject.com/en/1.11/topics/class-based-views/ -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3142506.CaG9OsFTv7%40devstation. For more options, visit https://groups.google.com/d/optout.