我仅在某些设备(一加,三星银河)中面临udid插件(https://medium.com/better-programming/how-to-create-a-framework-with-carthage-support-c30b596d3a7a)的问题
from django.shortcuts import render
from CollectMail.models import Details
from django.http import HttpResponse
import pandas as p
import os
file = p.read_csv(r"C:\Users\Robert Chomba Mumba\Desktop\Project At Access Bank 2\Emails\test_data_final.csv")
n = len(file['EMAIL'])
j = 0
k = 1
while j != n:
NewItem = file['EMAIL'][j]
NewObject = 'ID' + str(k)
NewObject = Details(email = NewItem)
NewObject.save()
j +=1
k +=1
#Object names are ID1,ID2,ID3....
def index(request):
#return HttpResponse(Details.objects.all())
return HttpResponse(ID2.email)
,但是在其他Android设备上正常运行。在这种情况下,我将变为空。我尝试在平台就绪内调用函数,但是没有运气。