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
Post a Comment