Re: Freelance Django and Python work

2023-07-08 Thread Mahendra Kumar
Hi, I am looking for opportunity in python to accelerate my career growth,
please consider this
Mobile:8299835153
Email:mahendra253ku...@gmail.com

Android

On Wed, 5 Jul, 2023, 10:43 pm kumbhaj shukla,  wrote:

>
> On Wed, Jul 5, 2023, 8:27 PM Dawn Wages  wrote:
>
>> Hi Uri,
>>
>> Are you still looking for a freelancer? I'm currently a Python Developer
>> Advocate at Microsoft, but I'm looking to pick up a bit of extra freelance
>> work. Here's my resume
>> 
>> .
>>
>> Best,
>>
>> DW
>>
>> *Dawn Wages *
>> Web, Data & Ethical OSS Engineer
>> https://calendly.com/dawn-wages
>> www.dawnwages.info
>> +1 215 294 0320
>>
>>
>>
>>
>>
>>
>> *✊* antiracist open source license and SDK: www.AtTheRoot.dev
>>  and newsletter
>>  (RSS)
>> 
>>
>> *✨** frequently updated *calendar * and *
>> *occasional* newsletter  (RSS)
>> * about A11y, django, wagtail,
>> tech for good*
>>
>>
>> ‪On Tue, Jun 13, 2023 at 7:29 AM ‫אורי‬‎  wrote:‬
>>
>>> Hi,
>>>
>>> I'm looking for a programmer to hire as a freelancer for Django and
>>> Python work.
>>>
>>> - Experience with Python and Django
>>> - Experience with open source
>>> - Committed to the Django repository on GitHub - an advantage
>>> - Committed to other open-source projects in Python - an advantage
>>> - Experience with Stack Overflow -  an advantage
>>> - BSc or BA in computers or science (math, physics) -  an advantage
>>> - Knowledge of HTML, CSS, and JavaScript - an advantage
>>> - Can issue receipts
>>>
>>> I need about 5 hours per month on average. Some months I might need up
>>> to 15 hours per month. Some months I might not need anything. The work is
>>> remote. My project is open source. I can give you a free license to
>>> PyCharm. My website is at https://en.speedy.net/ and
>>> https://github.com/speedy-net/speedy-net
>>>
>>> To apply please send one email to jobs+jango-freelan...@speedy.net,
>>> with your name, your email address, where you live, your experience, how
>>> many commits you committed to Django, how many commits you committed to
>>> other open source projects, a link to your profile on LinkedIn, a link to
>>> your profile on GitHub, a link to your profile on Stack Overflow, your
>>> diploma if you have any, how much you charge per hour and in which currency
>>> (I prefer USD or Euro), and if you can issue receipts. If you don't have a
>>> profile on one of the above websites please mention this too.
>>>
>>> Thanks,
>>> Uri Rodberg, Speedy Net.
>>> אורי
>>> u...@speedy.net
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CABD5YeHjQyFa75Mgq7nzcJ6AoX-WDeu75OOPfa2OngG2VTMaDQ%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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN2_Vwu_vEztv-Wz5ihFt%2B21MzNXW%3DMfvKPFMUA5-xMFmpVA%2Bg%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPjc%3DUWO4dCZOgQgd7DV8Y1%3DcmT2RpaVuQWXn_%3DgE6cXjFiXcA%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMzbe2ku6gMFA7AR%2BgCG5%3DmGbZTM9T23z1%2BffenknJsftGAU1Q%40mail.gmail.com.


Re: group

2022-09-29 Thread Mahendra
Please add me +91 9700993858

On Mon, 26 Sep 2022, 11:19 pm yassin kamanyile, 
wrote:

> Add me +255763023477
>
> On Mon, 26 Sept 2022, 15:53 Abdulfarid Olakunle, 
> wrote:
>
>> Hello fellow developers, I will be creating a WhatsApp group chat later
>> in the day, So I will like my fellow Python Django Developers to join the
>> group. It will be much easier to discuss there and I will sacrifice myself
>> out for anyone who need my service.
>>
>> God bless you all
>> Enjoy your day
>> Biliaminu
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOyeOe9tKFCogEZv1NfTVVRMpFcXxayH9vp0JU3XYiFO4fYU%2Bw%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3x4NM5_fHie6DACjowaJ3gRaiKEQZ75ZjT%2Bo3uBx3Ci_Q%40mail.gmail.com.


Re: Search option in website

2022-07-23 Thread Mahendra
I am not using models using only URLs is any ways to go like using Ajax or
JavaScript language please suggest me?

On Sat, 23 Jul 2022, 22:11 Lakshyaraj Dash, 
wrote:

> You can implement search option very easily like shown in the
> screenshot below
> Also for more information see the following django's model queryset
> documentation:
>
> https://docs.djangoproject.com/en/4.0/ref/models/querysets/
>
> Thanks and Regards
> Lakshyaraj Dash
>
> On Sat, Jul 23, 2022, 22:09 Mahendra  wrote:
>
>> Hi to all,
>> How to implement Search option in website.please any one guide me ?
>>
>> Thanks,
>> Mahendra Yadav
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN-6G3y6S7YPqReqa7Sn_T%2BuC%2BMnCf0WdEM5kNO02ZRYS%2BUfJw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAN-6G3y6S7YPqReqa7Sn_T%2BuC%2BMnCf0WdEM5kNO02ZRYS%2BUfJw%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF7qQgCVWL3YQGCtDrxA71usfgYN%2BVr0CvVmX8GYxvRiKRZRVQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF7qQgCVWL3YQGCtDrxA71usfgYN%2BVr0CvVmX8GYxvRiKRZRVQ%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3xvFxZTpC%3D3j-%3DZVOvxpRv-%2BybkoKJjrb3CT8GNuOmGDA%40mail.gmail.com.


Search option in website

2022-07-23 Thread Mahendra
Hi to all,
How to implement Search option in website.please any one guide me ?

Thanks,
Mahendra Yadav

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3y6S7YPqReqa7Sn_T%2BuC%2BMnCf0WdEM5kNO02ZRYS%2BUfJw%40mail.gmail.com.


Hi to all how to implement Search option in website?

2022-07-23 Thread Mahendra
On Fri, 22 Jul 2022, 23:37 Prashanth Patelc, 
wrote:

> how to use time in pandas  (convert 24 hours time to 12 hours)
>
> Login time  table
> ==
> userid logindate  logintime
> 22022-13-07  18:30:00.490337
>
> Logout time table
> ==
>
> userid logindate  logintime
> 22022-14-07  02:36:03.450327
>
>
> output:
>login_date  user__username   user  diiffrences
> 0  2022-07-14  neilneil   -1
> days +07:26:47.027887
>
> How to convert above atbles time:  ?
>
> nee output like this type
> ==
>  login_date  user__username   user  diiffrences
> 0  2022-07-14  neilneil
> 08:03:47.027887
>
>
>
> df['logout_time'] = pd.to_timedelta(df['logout_time'].astype(str))
>
> df['login_time'] = pd.to_timedelta(df['login_time'].astype(str))
>
>
> df['diiffrences'] = df['logout_time'] - df['login_time']
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMCU6CpwW9q9z_pBdgf%3Do5dEzvET5qqvddopjNQtGwuxm5RUjA%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3xoKQ4g5a8LtTGGwPJw1LSVXK2aGNwKcDKAHqsV0mb%3DKA%40mail.gmail.com.


Re: SMTP Authentification error

2022-05-01 Thread Mahendra
I Know this solution charges are applicable if you want?

Mahendra Yadav

On Wed, 27 Apr 2022, 11:08 am 'Delvin Alexander' via Django users, <
django-users@googlegroups.com> wrote:

> Hello everyone,
>
> May you please assist in informing me on what i need to do to resolve this
> issue.
>
> - *SMTPAuthenticationError at /password-reset/*
> *- (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8
> https://support.google.com/mail/?p=BadCredentials
> <https://support.google.com/mail/?p=BadCredentials>
> j64-20020a62c54300b0050d260c0ea8sm13366402pfg.110 - gsmtp')*
>
>
> I included the 16 character code to my environment variable and called it
> in my settings.pymfile,  but still the error occurs. Also here is my
> settings.py file:
>
> - *EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'*
> *EMAIL_HOST = 'smtp.gmail.com <http://smtp.gmail.com>'*
> *EMAIL_PORT = 587*
> *EMAIL_USE_TLS = True*
> *EMAIL_HOST_USER = os.environ.get('DB_USER')*
> *EMAIL_HOST_PASSWORD = os.environ.get('DB_PASSWORD')*
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c18935a8-43bf-4a15-a5ba-95209009498dn%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3zHxjvvtOeT4W0t0Cs0usAPM0bXfBk7M0vVx6HMMsiV0w%40mail.gmail.com.


Re: Hope you doing well

2021-07-22 Thread Mahendra
Hi Everyone,

I have doubt  to relative Website hosting in aws how much cost per one
single website in this using only some projects after   completion hosting
is it possible to  run Google ads because of I am jobless and no money.How
to succeed this life please all my dearest group users help me.

Mahendra Yadav

On Fri, 16 Jul 2021, 20:18 Mark Phillips, 
wrote:

> I have had good success with Linode, https://www.linode.com/. Their
> support has always been helpful and quick.
>
> Mark
>
> On Thu, Jul 15, 2021 at 11:18 AM Sebastian Jung 
> wrote:
>
>> Hello,
>>
>> In germany we have a provider where you get a root server for 7€ with 2
>> cores. Name is netcup. Linux is allready preinstalled... This server are
>> fast and much cheaper than amazon server
>>
>> Regards
>>
>> Mahendra  schrieb am Do., 15. Juli 2021, 18:38:
>>
>>> Which is the best hosting platform for Python and Django?
>>>
>>> Mahendra Yadav
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAN-6G3wWVEF0PmxeNng8uw-ZV6eDUFdEYwcqvG3OCf-UYX76-A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAN-6G3wWVEF0PmxeNng8uw-ZV6eDUFdEYwcqvG3OCf-UYX76-A%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3wkVHgNU1F-bWzS3aMXt%2B7q9MEHs9T6pVbF45ngw06rpw%40mail.gmail.com.


Re: Hiii Every one

2021-07-15 Thread Mahendra
Thanks bro

Mahendra Yadav

On Thu, 15 Jul 2021, 22:19 Desh Deepak,  wrote:

> Azure, Aws
>
> On Thu, 15 Jul 2021, 10:08 pm Mahendra,  wrote:
>
>> Which is the best hosting platform for Python and Django?
>>
>> Mahendra Yadav
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN-6G3wWVEF0PmxeNng8uw-ZV6eDUFdEYwcqvG3OCf-UYX76-A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAN-6G3wWVEF0PmxeNng8uw-ZV6eDUFdEYwcqvG3OCf-UYX76-A%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJ0m4xioagaA5F9fHVgPxMM-D7ZpEaOfumsg38T_wGb3ZKWVkw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJ0m4xioagaA5F9fHVgPxMM-D7ZpEaOfumsg38T_wGb3ZKWVkw%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3ytKyRFGcnJ97HxHOwtQBXKn-d09o76moYJa%2B317PfoZQ%40mail.gmail.com.


Hiii Every one

2021-07-15 Thread Mahendra
Which is the best hosting platform for Python and Django?

Mahendra Yadav

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3wWVEF0PmxeNng8uw-ZV6eDUFdEYwcqvG3OCf-UYX76-A%40mail.gmail.com.


Re: Makemigrations and migrate for already existing database

2021-06-04 Thread Mahendra
Check the error in Google

Mahendra Yadav

On Fri, 4 Jun 2021, 18:28 Ankita Sharma,  wrote:

> Hello All
> Hope all are doing great.
> The issue is as follows:
> I have already existing 2 MSSql databases from which I have migrated
> required tables into models.py
> Now I am not able to do makemigrations on one of them. Below is the error:
>
> from records.models.transactions_east import AdgSrtransactionsEast
> ValueError: source code string cannot contain null bytes
>
> Please help me here
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0528c4a7-36a2-4762-a576-db114c7d445cn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0528c4a7-36a2-4762-a576-db114c7d445cn%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3xNFg%3DGfu%3DZebJsagBhDjOL-UgpN-Tx-kAH9mRNvi2N6Q%40mail.gmail.com.


Re: Makemigrations/migrate in existing database

2021-06-04 Thread Mahendra
I think surely run makemigrations and migrate

Mahendra Yadav

On Fri, 4 Jun 2021, 18:28 Ankita Sharma,  wrote:

> Hello Team
> Hope all are doing great
>
> I have a database in microsoft sql server. I created tables and views in
> it.
>
> I ran py manage.py inspetdb  > Models.py and populated my models.py file .
> I also don't want my model to alter my database. I just want it for data
> retrieval.
>
> *Should I definitely run migrate/makemigrations?*
>
> *After inspectdb should i apply makemigrations on my app or is just
> migrate enough?* And also what are the points to remember while using
> inspectdb on an existing database.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/908ff564-adca-4b64-9ec4-e347a3818efbn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/908ff564-adca-4b64-9ec4-e347a3818efbn%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3ykKx-Ab7qGAHhDL5WXNWL8bSU8_H5Hioypa%2Ba8A8CXzA%40mail.gmail.com.


Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Mahendra
I think given name is wrong Hlo do you have any idea posting form data?

Mahendra Yadav

On Thu, 1 Apr 2021, 22:32 Salima Begum, 
wrote:

> Hi all,
>
> How to solve this errors
> ```
> AttributeError: 'customer' object has no attribute 'is_authenticated'
> ```
>
> ```
>   AttributeError: 'customer' object has no attribute 'is_anonymous'
> ```
>
> How can I solve this above errors. Help me.
>
> Thanks
> ~Salima
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6bkcDZeFhhStQeTOeLAst1kNA1xa%2BuVsd0sva1JA0P8kMw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMSz6bkcDZeFhhStQeTOeLAst1kNA1xa%2BuVsd0sva1JA0P8kMw%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3x_vyJcBsfQ-pfN3AgK1-V_SVPSt3Fk6h%2ByLnU4iKorkg%40mail.gmail.com.


Please help me ? forms are not stored in database

2021-04-01 Thread Mahendra
#Model
Form Django import models
Class singupdata(models.model):
 Username=models.CharField(max_len=20)
 Password=models.CharField(max_len=20)
#form
from django import forms
Class Signform (forms.form):
  Username=forms.IntegerFiled(
 labe='E mail',
Widget=forms.Textinput(
   attr={
  'class':'form-control',
  'placeholder':'username'
   }
  )
   )

Password=forms.EmailField(
 labe='Password',
Widget=forms.EmailInput(
   attr={
  'class':'form-control',
  'placeholder':'E-mail'
   }
  )
   )


#views
from .fomrs import Signform
from app.models import signudata
Def Signup(request):
If request.method=='POST':
   sform=Signform (request.post)
  If sform.is_valid():
   username=request.POST.get(Username,' ')
   password=request.POST.get(Password,' ')
   data =Signudata (
   Uname=username,
  Pwd =password,
  )
 data.save
   sform =Signform ()
   return render (request,sign.html,{'sform':sform}
#sign.html

{% csrf_token%}
{{ sform}}





Mahendra Yadav

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3y9xAasDRhgGdAPxyK4XYOegLCienE6b3Yxv4pqo3FBWg%40mail.gmail.com.


Hi how to another app URL config to main project URLs

2021-03-20 Thread Mahendra
Mahendra Yadav

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3xxU%3DMCXSKP%2BbJRUoo5GbT-9akM25QeT%2B-4n7zML6XsMQ%40mail.gmail.com.


Re: django -mysql

2021-02-01 Thread Mahendra
U have try pip install MySql

Mahendra Yadav

On Tue, 2 Feb 2021, 06:53 Juan Quiroz,  wrote:

> Trato de usar el pip3 install mysqlclient y me genera este error.
>
> ERROR: Command errored out with exit status 1: python setup.py egg_info
> Check the logs for full command output.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d2ef15b9-13e1-4e0e-931e-0df7ff389e9dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d2ef15b9-13e1-4e0e-931e-0df7ff389e9dn%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3w9RG_npytWV_3VAqN8v9q%2BtKU7QJOZFdeEsDazZ8X9RA%40mail.gmail.com.


Re: Hi any body help i want code video belonging views,likes and dislikes

2021-02-01 Thread Mahendra
Like youtube videos belonging to views,likes and
Dislikes
Mahendra Yadav

On Mon, 1 Feb 2021, 20:23 Kasper Laudrup,  wrote:

> If you want someone to help you with anything, at least take the minimal
> effort of asking for it in a proper way.
>
> I have no idea which kind of response you expect to get from posting
> something like this.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/687bc306-7490-ee63-76c8-8496632a4f3c%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3zzKZNO6EoomcE44f6G_jqFxLwWKV8FTmOO3XvT2CThSA%40mail.gmail.com.


Hi any body help i want code video belonging views,likes and dislikes

2021-02-01 Thread Mahendra
Mahendra Yadav

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3x0h_PgxHQsTHXSF15QiLoEFxEdykwNzdGpg%3DKWw4B6sw%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-12-01 Thread Mahendra
i am intersted
Mahendra A


On Tue, Dec 1, 2020 at 6:47 AM Monaco investment  wrote:

> I am also interested.
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> --
> *From:* django-users@googlegroups.com  on
> behalf of boyuanl...@gmail.com 
> *Sent:* Monday, November 30, 2020 7:35:31 PM
> *To:* django-users@googlegroups.com 
> *Subject:* Re: Looking to join a team in a Django Project to gain
> Experience
>
> I'm also interested.
>
> On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin <
> md.reyajuddi...@gmail.com> wrote:
>
>
> hi,
>
> I am interested.
>
> On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com <
> ahmed.heshamel...@gmail.com> wrote:
>
> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com?utm_medium=email_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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com
> <https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com?utm_medium=email_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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/AM6PR03MB5957E1FC2A5754B8AE3E0746A7F40%40AM6PR03MB5957.eurprd03.prod.outlook.com
> <https://groups.google.com/d/msgid/django-users/AM6PR03MB5957E1FC2A5754B8AE3E0746A7F40%40AM6PR03MB5957.eurprd03.prod.outlook.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3wiDrzhLo8WptcFZREOxGwD2ih_x2RejgBG9_w4PiiKZA%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Mahendra
I willing to join in Eveningtime

Mahendra Yadav

On Tue, 22 Sep 2020, 06:09 ahmed.he...@gmail.com, <
ahmed.heshamel...@gmail.com> wrote:

> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com?utm_medium=email_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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3yTanyHARb5fnGR0MWvr9FmJFUSfV-qqHBNhvBwW9_9Cw%40mail.gmail.com.


Interested

2020-07-21 Thread Mahendra Yadav
avulamahen...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/169ee8ae-72b5-4ea3-980b-93b647826736o%40googlegroups.com.


Re: Python-django project

2020-07-21 Thread Mahendra
I am interested

MAHENDRA YADAV

On Tue, 21 Jul 2020, 8:39 am learn code,  wrote:

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-6G3zbJX6u79Nax6mb6b%2BoufQ7S_6nth7OXqjV9t3sF%3DQRzw%40mail.gmail.com.


Re: Python Django Training

2020-02-03 Thread Mahendra Purohit
Hi,
I am also interested, please add me.
Regards
Purohit

On Sat, 1 Feb 2020 at 7:12 PM, Srikanth K  wrote:

> Hi,
>
> I am from Hyderabad. I am Python Developer by Profession. I am eager take
> up any Python , Django Training (online Preferrable or Weekends). Members
> who require can contact me or share me  there idea.
>
> Regards,
> Srikanth.K
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__Fq1xt4trjXUaN3ehQ%40mail.gmail.com
> 
> .
>
-- 
*महेंद्र कुमार पुरोहित*
*मौसम वैज्ञानिक 'बी' (सेवा निवृत्त)*

*जल मौसम विज्ञान प्रभाग, भारत मौसम विज्ञान विभाग, लोदी रोड, नई दिल्ली -
110003*

*M K Purohit*
*Meteorologist 'B' (Retired)*
*Hydromet Division, India Meteorological Department, Lodi Road, New Delhi -
110003*

Cell : 09899136473

E-mail : mkpurohit.imd2...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABWCYRsPSUdB4Gp0n92gBFpdUdK9_kc9V9J1Toor20cQjr_orw%40mail.gmail.com.


Re: foreign key is not working

2018-10-31 Thread Mahendra Rana
Where is model codes?

On Wednesday, 31 October 2018 17:15:53 UTC+5:30, amit pant wrote:
>
> i used foreign key for make relationship between two model class but it 
> does not work properly, i used this for make subscription and on first 
> model their is choices for subscription.
> help me why it is not working
>
>

-- 
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/3ede6b13-4929-476c-978f-757e49d6221c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: filter chaining v/s filter with multiple arguments.

2017-04-05 Thread Mahendra Gaur
Thanks everyone.

Now I have got a clear idea of how these both statements differ to each
other.




Thanks and Regards,
Mahendra

On Tue, Apr 4, 2017 at 5:55 PM, Todor Velichkov <todorvelichko...@gmail.com>
wrote:

> I didn't use anything special, just print on queryset.query
>
> qs1 = Blog.objects.filter(entry__headline__contains='Lennon',
> entry__pub_date__year=2008)
> qs2 = Blog.objects.filter(entry__headline__contains='Lennon').filter(
> entry__pub_date__year=2008)
>
> print qs1.query
> print qs2.query
>
>
> On Tuesday, April 4, 2017 at 2:03:45 PM UTC+3, Mahendra Gaur wrote:
>>
>> Thanks Todor Velichkov.
>>
>> It would be great if you let me know how did you get these queries (tool
>> name etc).
>> Because when I was trying to get MySQL query using *q.query*, these both
>> statements were giving same query.
>>
>>
>>
>> Thanks and Regards,
>> Mahendra
>>
>>
>> On Tue, Apr 4, 2017 at 1:35 AM, Todor Velichkov <todorvel...@gmail.com>
>> wrote:
>>
>>> Nope, they are not the same.
>>>
>>> The first one:
>>>
>>> Blog.objects.filter(entry__headline__contains='Lennon', 
>>> entry__pub_date__year=2008)
>>>
>>>
>>> Will produce the following SQL:
>>> SELECT
>>> "blog_blog"."id",
>>> "blog_blog"."name",
>>> "blog_blog"."tagline"
>>> FROM
>>> "blog_blog"
>>> INNER JOIN "blog_entry" ON ("blog_blog"."id" = "blog_entry"."blog_id")
>>> WHERE (
>>> "blog_entry"."pub_date" BETWEEN 2008-01-01 AND 2008-12-31
>>> AND "blog_entry"."headline" LIKE %Lennon% ESCAPE '\'
>>> )
>>>
>>> Which can be translated as:
>>>
>>>> select all blogs that contain entries with both *“Lennon”* in the
>>>> headline and that were published in 2008 (the same entry satisfying both
>>>> conditions)
>>>>
>>>
>>>
>>> While the second one:
>>> Blog.objects.filter(entry__headline__contains='Lennon').filter(
>>> entry__pub_date__year=2008)
>>>
>>> Will produce:
>>> SELECT
>>> "blog_blog"."id",
>>> "blog_blog"."name",
>>> "blog_blog"."tagline"
>>> FROM "blog_blog"
>>> INNER JOIN "blog_entry" ON ("blog_blog"."id" = "blog_entry"."blog_id")
>>> INNER JOIN "blog_entry" T3 ON ("blog_blog"."id" = T3."blog_id")
>>> WHERE (
>>> T3."pub_date" BETWEEN 2008-01-01 AND 2008-12-31
>>> ABD "blog_entry"."headline" LIKE %Lennon% ESCAPE '\'
>>> )
>>>
>>> Which can be translated as:
>>>
>>>> select all blogs that contain an entry with “Lennon” in the headline as
>>>> well as an entry that was published in 2008
>>>>
>>>
>>> More from the docs:
>>>
>>>> Suppose there is only one blog that had both entries containing
>>>> “Lennon” and entries from 2008, but that none of the entries from 2008
>>>> contained “Lennon”. The first query would not return any blogs, but the
>>>> second query would return that one blog.
>>>>
>>>> In the second example, the first filter restricts the queryset to all
>>>> those blogs linked to entries with “Lennon” in the headline. The second
>>>> filter restricts the set of blogs further to those that are also linked to
>>>> entries that were published in 2008. The entries selected by the second
>>>> filter may or may not be the same as the entries in the first filter. We
>>>> are filtering the Blog items with each filter statement, not the Entry
>>>> items.
>>>
>>>
>>> Sometimes we need several JOINs over the same table, sometimes we don't.
>>> And this is the way to achieve it. You want a single JOIN, put everything
>>> into a single .filter call, if you want multiple JOINs, use multiple
>>> .filter calls.
>>>
>>> On Monday, April 3, 2017 at 2:33:28 PM UTC+3, Mahendra Gaur wrote:
>>>>
>>>> Thank you for reply.
>>>>
>>>> In case of second statement, why two JOIN are required each with single
>>>> filter ?
>>>> As per my understan

Re: Setting variable in custom template

2017-04-04 Thread Mahendra Gaur
Why do you want to set it in custom template. It would be better if you put
this variable in context dictionary while rendering and then use it in the
template on the basis of condition.


Thanks and regards,
Mahendra

On 4 Apr 2017 7:44 p.m., "valerio orfano" <ingorfa...@gmail.com> wrote:

> Hi there
>
> is there any chance to set the value of variable in django custom template?
>
> I am looking for something like {set variable = "test"}
>
> But i Cannot make it to work!
>
> Any clue?
>
> rgds valerio
>
> --
> 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/c62929e8-f049-43e6-b42a-4217fa9188bb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c62929e8-f049-43e6-b42a-4217fa9188bb%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAExdeFYp%3DP2ry_N6JY8zd5yQvueBrajyObdWeKas326cOxfShg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: filter chaining v/s filter with multiple arguments.

2017-04-04 Thread Mahendra Gaur
Thanks Todor Velichkov.

It would be great if you let me know how did you get these queries (tool
name etc).
Because when I was trying to get MySQL query using *q.query*, these both
statements were giving same query.



Thanks and Regards,
Mahendra


On Tue, Apr 4, 2017 at 1:35 AM, Todor Velichkov <todorvelichko...@gmail.com>
wrote:

> Nope, they are not the same.
>
> The first one:
>
> Blog.objects.filter(entry__headline__contains='Lennon', 
> entry__pub_date__year=2008)
>
>
> Will produce the following SQL:
> SELECT
> "blog_blog"."id",
> "blog_blog"."name",
> "blog_blog"."tagline"
> FROM
> "blog_blog"
> INNER JOIN "blog_entry" ON ("blog_blog"."id" = "blog_entry"."blog_id")
> WHERE (
> "blog_entry"."pub_date" BETWEEN 2008-01-01 AND 2008-12-31
> AND "blog_entry"."headline" LIKE %Lennon% ESCAPE '\'
> )
>
> Which can be translated as:
>
>> select all blogs that contain entries with both *“Lennon”* in the
>> headline and that were published in 2008 (the same entry satisfying both
>> conditions)
>>
>
>
> While the second one:
> Blog.objects.filter(entry__headline__contains='Lennon').filter(
> entry__pub_date__year=2008)
>
> Will produce:
> SELECT
> "blog_blog"."id",
> "blog_blog"."name",
> "blog_blog"."tagline"
> FROM "blog_blog"
> INNER JOIN "blog_entry" ON ("blog_blog"."id" = "blog_entry"."blog_id")
> INNER JOIN "blog_entry" T3 ON ("blog_blog"."id" = T3."blog_id")
> WHERE (
> T3."pub_date" BETWEEN 2008-01-01 AND 2008-12-31
> ABD "blog_entry"."headline" LIKE %Lennon% ESCAPE '\'
> )
>
> Which can be translated as:
>
>> select all blogs that contain an entry with “Lennon” in the headline as
>> well as an entry that was published in 2008
>>
>
> More from the docs:
>
>> Suppose there is only one blog that had both entries containing “Lennon”
>> and entries from 2008, but that none of the entries from 2008 contained
>> “Lennon”. The first query would not return any blogs, but the second query
>> would return that one blog.
>>
>> In the second example, the first filter restricts the queryset to all
>> those blogs linked to entries with “Lennon” in the headline. The second
>> filter restricts the set of blogs further to those that are also linked to
>> entries that were published in 2008. The entries selected by the second
>> filter may or may not be the same as the entries in the first filter. We
>> are filtering the Blog items with each filter statement, not the Entry
>> items.
>
>
> Sometimes we need several JOINs over the same table, sometimes we don't.
> And this is the way to achieve it. You want a single JOIN, put everything
> into a single .filter call, if you want multiple JOINs, use multiple
> .filter calls.
>
> On Monday, April 3, 2017 at 2:33:28 PM UTC+3, Mahendra Gaur wrote:
>>
>> Thank you for reply.
>>
>> In case of second statement, why two JOIN are required each with single
>> filter ?
>> As per my understanding whether it use one JOIN with both the filter or
>> two JOIN each with single filter, both are same.
>> correct me if am wrong ?
>>
>>
>>
>> Thanks and Regards,
>> Mahendra
>>
>> On Mon, Apr 3, 2017 at 1:39 PM, Todor Velichkov <todorvel...@gmail.com>
>> wrote:
>>
>>> The first one will use a single JOIN on the entry table, and will apply
>>> both filters to that table.
>>> The second one will JOIN the entry table twice, and for every join will
>>> apply only a single filter
>>>
>>>
>>> On Sunday, April 2, 2017 at 5:41:29 PM UTC+3, Mahendra Gaur wrote:
>>>>
>>>> Hello everyone,
>>>>
>>>> I am newbie to django. Now-a-days am reading django docs.
>>>> While reading models i got confusion that, What is the difference
>>>> between filter chaining and filter with multiple arguments.
>>>> For example what is the diffrence between below two:
>>>>
>>>> Blog.objects.filter(entry__headline__contains='Lennon', 
>>>> entry__pub_date__year=2008)
>>>>
>>>> Blog.objects.filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)
>>>>
>>>>
>>>> can some one please help m

RE: filter chaining v/s filter with multiple arguments.

2017-04-03 Thread Mahendra Gaur
Thanks for reply.

I have tried q.query on both statements but both are giving same query. I
had tried this even before initiating this mail chain, and this was the
point where I got confused.



Thanks and regards,
Mahendra Gaur


On 3 Apr 2017 6:55 p.m., "Matthew Pava" <matthew.p...@iss.com> wrote:

Hi Mahendra,

You can view the SQL that is generated by using the query attribute on the
QuerySet.

q = Blog.objects.filter(entry__headline__contains='Lennon',
entry__pub_date__year=2008)

print(str(q.query))



That should help in understanding what is going on.

Best wishes!



*From:* django-users@googlegroups.com [mailto:django-users@googlegroups.com]
*On Behalf Of *Mahendra Gaur
*Sent:* Sunday, April 2, 2017 9:39 AM
*To:* django-users@googlegroups.com
*Subject:* filter chaining v/s filter with multiple arguments.



Hello everyone,



I am newbie to django. Now-a-days am reading django docs.

While reading models i got confusion that, What is the difference between
filter chaining and filter with multiple arguments.

For example what is the diffrence between below two:



Blog.objects.filter(entry__headline__contains='Lennon',
entry__pub_date__year=2008)

Blog.objects.filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)



can some one please help me to understand how these both works and most
importantly what will be corresponding MYSQL queries for above two
statements ?







Thanks and Regards,

Mahendra



-- 
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/CAExdeFaPbedyCOuO_PHsRO3GcVC_nAMxNm6JCHfsJ%2BCn6bdssg%
40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAExdeFaPbedyCOuO_PHsRO3GcVC_nAMxNm6JCHfsJ%2BCn6bdssg%40mail.gmail.com?utm_medium=email_source=footer>
.

For more options, visit https://groups.google.com/d/optout.

-- 
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/008b9ec564814285939b4b3cc406bb14%40ISS1.ISS.LOCAL
<https://groups.google.com/d/msgid/django-users/008b9ec564814285939b4b3cc406bb14%40ISS1.ISS.LOCAL?utm_medium=email_source=footer>
.

For more options, visit https://groups.google.com/d/optout.

-- 
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/CAExdeFb7Zs0vrMKT5m%3DtkPJB1rRboq%2B5FsTKZ9V6%3DqVkWTGZag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: filter chaining v/s filter with multiple arguments.

2017-04-03 Thread Mahendra Gaur
Thank you for reply.

In case of second statement, why two JOIN are required each with single
filter ?
As per my understanding whether it use one JOIN with both the filter or two
JOIN each with single filter, both are same.
correct me if am wrong ?



Thanks and Regards,
Mahendra

On Mon, Apr 3, 2017 at 1:39 PM, Todor Velichkov <todorvelichko...@gmail.com>
wrote:

> The first one will use a single JOIN on the entry table, and will apply
> both filters to that table.
> The second one will JOIN the entry table twice, and for every join will
> apply only a single filter
>
>
> On Sunday, April 2, 2017 at 5:41:29 PM UTC+3, Mahendra Gaur wrote:
>>
>> Hello everyone,
>>
>> I am newbie to django. Now-a-days am reading django docs.
>> While reading models i got confusion that, What is the difference between
>> filter chaining and filter with multiple arguments.
>> For example what is the diffrence between below two:
>>
>> Blog.objects.filter(entry__headline__contains='Lennon', 
>> entry__pub_date__year=2008)
>>
>> Blog.objects.filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)
>>
>>
>> can some one please help me to understand how these both works and most
>> importantly what will be corresponding MYSQL queries for above two
>> statements ?
>>
>>
>>
>> Thanks and Regards,
>> Mahendra
>>
>> --
> 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/19f4e103-0325-4f8e-bd03-502a1f2fe002%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/19f4e103-0325-4f8e-bd03-502a1f2fe002%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAExdeFbNanEPwgXCLuyuAMiA1XWPNVWGqvk%2BSnE8KxU67ExiZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


filter chaining v/s filter with multiple arguments.

2017-04-02 Thread Mahendra Gaur
Hello everyone,

I am newbie to django. Now-a-days am reading django docs.
While reading models i got confusion that, What is the difference between
filter chaining and filter with multiple arguments.
For example what is the diffrence between below two:

Blog.objects.filter(entry__headline__contains='Lennon',
entry__pub_date__year=2008)

Blog.objects.filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)


can some one please help me to understand how these both works and most
importantly what will be corresponding MYSQL queries for above two
statements ?



Thanks and Regards,
Mahendra

-- 
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/CAExdeFaPbedyCOuO_PHsRO3GcVC_nAMxNm6JCHfsJ%2BCn6bdssg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.