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 -

delphi - ESC/P programming! -

c++ - error: use of deleted function -