if (company1 and company2):
if ((company1 and company2) is not None):
print 1
por_company = Company.objects.filter(Q(code=int(spinfo["comp_code"])) | Q(name=spinfo["comp_name"])).update(
code=int(spinfo["comp_code"]),
name=spinfo["comp_name"],
custom_id=int(custom_id),
compclass_id=int(compclass_id),
email=spinfo['comp_email'],
lng=float(spinfo["comp_lng"]),
lat=float(spinfo["comp_lat"]),
)
print 123
por_company.save()
断点调试
![](https://images2015.cnblogs.com/blog/801928/201608/801928-20160808161446309-1094005476.png)
url(r'^create_user/$', views.create_user, name='create_user'),
url(r'^admin/django_admin/profile_user/upload_user/$', views.upload_user, name='upload_user'),
dir > 1.txt