Defining variables to pass to Django models -


the following works me --

email_list = emaillist.objects.get(domain=(cd['email'].split('@')[1])) 

but defining 'domain' variable before not --

domain = cd['email'].split('@')[1] email_list = emaillist.objects.get(domain=domain) 

when latter, raises "emaillist matching query not exist". accounts difference??

there nothing accounts difference; python variables not change type when bound name.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -