Saturday, June 17, 2017

Re: DSasS(Data Science as Service)

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.sopacua@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, which make sharing common functionality a lot easier.

 

--

Melvyn Sopacua

No comments:

Post a Comment