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

Cursor error with postgresql, pgpool and php -

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

ssh client with paramiko (python) -