[PyDelhi] Ncr-Python.in Digest, Vol 57, Issue 2

Sami Ullah sami.ullah at srijan.in
Tue Nov 3 02:34:26 EST 2015


Hi ,

Is there any mentorship programme available for new people to python.
I am looking for a system where person gets trained on project and gets his
hands dirty on problems a common dev or python qa faces.

On Tue, Nov 3, 2015 at 11:37 AM, <ncr-python.in-request at python.org> wrote:

> Send Ncr-Python.in mailing list submissions to
>         ncr-python.in at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/ncr-python.in
> or, via email, send a message with subject or body 'help' to
>         ncr-python.in-request at python.org
>
> You can reach the person managing the list at
>         ncr-python.in-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ncr-Python.in digest..."
>
>
> Today's Topics:
>
>    1. Re: [Query] [DRF] Raw SQL Query by passing Model and Model
>       Serializer (Anuvrat Parashar)
>    2. Re: [Query] [DRF] Raw SQL Query by passing Model and
>       ModelSerializer (Aniket Maithani)
>    3. Re: [Query] [DRF] Raw SQL Query by passing Model and Model
>       Serializer (kracekumar ramaraju)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 3 Nov 2015 11:10:41 +0530
> From: Anuvrat Parashar <anuvrat at anuvrat.in>
> To: Python Delhi User Group <ncr-python.in at python.org>
> Subject: Re: [PyDelhi] [Query] [DRF] Raw SQL Query by passing Model
>         and Model Serializer
> Message-ID:
>         <
> CA+YFjT4VgLs-KX00FTibD+FAikxfVhvQNVPopsX+SAyO9HsCHg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> @aniket
>
> On Sun, Nov 1, 2015 at 1:14 AM, ragsagar <ragsagar at gmail.com> wrote:
>
> >
> >
> > On Sat, Oct 31, 2015 at 2:14 AM, Aniket Maithani <
> > maithani.aniket at gmail.com> wrote:
> >
> >>
> >>
> >>
> >> On Sat, Oct 31, 2015 at 3:26 AM, Raakesh kumar <kumar3180 at gmail.com>
> >> wrote:
> >>
> >>>
> >>> Just for my curiosity, why do you want to remove model interaction? I
> >>> mean you can achieve it with models also
> >>>
> >>
> >>
> >> Well point being I already have the data in the database (parsed from
> the
> >> website) . Which I have exported. And since I know the data is going to
> >> remain unchanged for some-time I feel there is no need to create model
> for
> >> the same (Correct me If I am wrong here). Therefore I just want simple
> >> query and output mechanism, that's all.
> >>
> > [correcting you] you create models in Django to make it easier to do all
> of CRUD easily which more often than others involves querying the db.
>
>
> Now, you orrect me if I am wrong.
>  - you have a database with some values present in them.
>  - you want to create an API layer over it, to power some basic searching,
> filtering etc.
>  - you don't want to create django models for them.
>
> so there is no CRUD, why do you need restful API?
> and if there is no restful API, why do you need DRF?
> if there are no models and no DRF, why do you need Django?
>
> I would have opted for either of:
>  - dump the data in elasticsearch, put it behind nginx. ready.
>  - dump the data in mongodb and use http://python-eve.org/ to build the
> API
> layer.
>
> Using a Knife to do a rock's job is not wise either :P, if you know what I
> mean.
>
>
>
> >>
> > Use the management command `inspectdb`. It will inspect your existing
> > tables and create models for you. Then you can use DRF's generic views
> > itself.  Read more here.
> > https://docs.djangoproject.com/en/1.8/howto/legacy-databases/
> >
> > --
> > blog : ragsagar.wordpress.com
> > mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in
> > ['gmail','com']])])"
> >
> > _______________________________________________
> > https://mail.python.org/mailman/listinfo/ncr-python.in
> > http://bit.ly/pydelhi-mailinglist-guidelines
> >
>
>
>
> --
> Anuvrat Parashar <http://anuvrat.in>
> http://anuvrat.in
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/ncr-python.in/attachments/20151103/e2bb5855/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 3 Nov 2015 11:27:35 +0530
> From: Aniket Maithani <maithani.aniket at gmail.com>
> To: Python Delhi User Group <ncr-python.in at python.org>
> Subject: Re: [PyDelhi] [Query] [DRF] Raw SQL Query by passing Model
>         and ModelSerializer
> Message-ID: <56384cd1.4706430a.11db8.53af at mx.google.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hmm... Sounds fair... Actually on a learning curve... Nvm will take a look
> into this first. Too much info for me I believe.
>
>
> (sorry for slangs I am on mobile)
>
> Thanks
>
> -----Original Message-----
> From: "Anuvrat Parashar" <anuvrat at anuvrat.in>
> Sent: ?03-?11-?2015 11:10
> To: "Python Delhi User Group" <ncr-python.in at python.org>
> Subject: Re: [PyDelhi] [Query] [DRF] Raw SQL Query by passing Model and
> ModelSerializer
>
> @aniket
>
>
>
> On Sun, Nov 1, 2015 at 1:14 AM, ragsagar <ragsagar at gmail.com> wrote:
>
>
>
>
>
> On Sat, Oct 31, 2015 at 2:14 AM, Aniket Maithani <
> maithani.aniket at gmail.com> wrote:
>
>
>
>
>
>
> On Sat, Oct 31, 2015 at 3:26 AM, Raakesh kumar <kumar3180 at gmail.com>
> wrote:
>
>
>
> Just for my curiosity, why do you want to remove model interaction? I mean
> you can achieve it with models also
>
>
>
> Well point being I already have the data in the database (parsed from the
> website) . Which I have exported. And since I know the data is going to
> remain unchanged for some-time I feel there is no need to create model for
> the same (Correct me If I am wrong here). Therefore I just want simple
> query and output mechanism, that's all.
> [correcting you] you create models in Django to make it easier to do all
> of CRUD easily which more often than others involves querying the db.
>
>
>
> Now, you orrect me if I am wrong.
>
>  - you have a database with some values present in them.
>
>  - you want to create an API layer over it, to power some basic searching,
> filtering etc.
>
>  - you don't want to create django models for them.
>
>
>
> so there is no CRUD, why do you need restful API?
>
> and if there is no restful API, why do you need DRF?
>
> if there are no models and no DRF, why do you need Django?
>
>
> I would have opted for either of:
>
>  - dump the data in elasticsearch, put it behind nginx. ready.
>
>  - dump the data in mongodb and use http://python-eve.org/ to build the
> API layer.
>
>
> Using a Knife to do a rock's job is not wise either :P, if you know what I
> mean.
>
>
>
>
>
>
>
>
>
> Use the management command `inspectdb`. It will inspect your existing
> tables and create models for you. Then you can use DRF's generic views
> itself.  Read more here.
> https://docs.djangoproject.com/en/1.8/howto/legacy-databases/
>
>
> --
>
> blog : ragsagar.wordpress.com
> mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in
> ['gmail','com']])])"
>
> _______________________________________________
> https://mail.python.org/mailman/listinfo/ncr-python.in
> http://bit.ly/pydelhi-mailinglist-guidelines
>
>
>
>
> --
>
> Anuvrat Parashar
> http://anuvrat.in
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/ncr-python.in/attachments/20151103/f452c528/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 3 Nov 2015 11:37:22 +0530
> From: kracekumar ramaraju <kracethekingmaker at gmail.com>
> To: Python Delhi User Group <ncr-python.in at python.org>
> Subject: Re: [PyDelhi] [Query] [DRF] Raw SQL Query by passing Model
>         and Model Serializer
> Message-ID:
>         <CAO5c=m=6tWP7AMR7WECJGUVGcu=
> JUM4yiOq+eRCeXx5NqSS6AA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Tue, Nov 3, 2015 at 11:10 AM, Anuvrat Parashar <anuvrat at anuvrat.in>
> wrote:
>
> > @aniket
> >
> > On Sun, Nov 1, 2015 at 1:14 AM, ragsagar <ragsagar at gmail.com> wrote:
> >
> >>
> >>
> >> On Sat, Oct 31, 2015 at 2:14 AM, Aniket Maithani <
> >> maithani.aniket at gmail.com> wrote:
> >>
> >>>
> >>>
> >>>
> >>> On Sat, Oct 31, 2015 at 3:26 AM, Raakesh kumar <kumar3180 at gmail.com>
> >>> wrote:
> >>>
> >>>>
> >>>> Just for my curiosity, why do you want to remove model interaction? I
> >>>> mean you can achieve it with models also
> >>>>
> >>>
> >>>
> >>> Well point being I already have the data in the database (parsed from
> >>> the website) . Which I have exported. And since I know the data is
> going to
> >>> remain unchanged for some-time I feel there is no need to create model
> for
> >>> the same (Correct me If I am wrong here). Therefore I just want simple
> >>> query and output mechanism, that's all.
> >>>
> >> [correcting you] you create models in Django to make it easier to do all
> > of CRUD easily which more often than others involves querying the db.
> >
> >
> > Now, you orrect me if I am wrong.
> >  - you have a database with some values present in them.
> >  - you want to create an API layer over it, to power some basic
> searching,
> > filtering etc.
> >  - you don't want to create django models for them.
> >
> > so there is no CRUD, why do you need restful API?
> > and if there is no restful API, why do you need DRF?
> > if there are no models and no DRF, why do you need Django?
> >
> > I would have opted for either of:
> >  - dump the data in elasticsearch, put it behind nginx. ready.
> >
>
> Make sure to use python elasticsearch binding at least to prevent
> elasticsearch injection similar to SQL Injection.
>
>
> >  - dump the data in mongodb and use http://python-eve.org/ to build the
> > API layer.
> >
> > Using a Knife to do a rock's job is not wise either :P, if you know what
> I
> > mean.
> >
> >
> >
> >>>
> >> Use the management command `inspectdb`. It will inspect your existing
> >> tables and create models for you. Then you can use DRF's generic views
> >> itself.  Read more here.
> >> https://docs.djangoproject.com/en/1.8/howto/legacy-databases/
> >>
> >> --
> >> blog : ragsagar.wordpress.com
> >> mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in
> >> ['gmail','com']])])"
> >>
> >> _______________________________________________
> >> https://mail.python.org/mailman/listinfo/ncr-python.in
> >> http://bit.ly/pydelhi-mailinglist-guidelines
> >>
> >
> >
> >
> > --
> > Anuvrat Parashar <http://anuvrat.in>
> > http://anuvrat.in
> >
> >
> > _______________________________________________
> > https://mail.python.org/mailman/listinfo/ncr-python.in
> > http://bit.ly/pydelhi-mailinglist-guidelines
> >
>
>
>
> --
>
> *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus
> Torvaldshttp://kracekumar.com <http://kracekumar.com>*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/ncr-python.in/attachments/20151103/b1e7b836/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> https://mail.python.org/mailman/listinfo/ncr-python.in
> Mailing list guidelines : http://bit.ly/pydelhi-mailinglist-guidelines
>
> ------------------------------
>
> End of Ncr-Python.in Digest, Vol 57, Issue 2
> ********************************************
>



-- 
Thanks,
Sami Ullah |  Quality Analyst
Srijan Technologies Pvt. Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ncr-python.in/attachments/20151103/4ccd4de5/attachment-0001.html>


More information about the Ncr-Python.in mailing list