我设置了以下模型:
ResourceRequest has no cluster.
当我尝试发布到:
它抱怨if self.cluster.name == 'abc':
Stacktrace显示 import os
import pandas as pd
import numpy as np
import csv
os.chdir(r'D:\GRIDS\SIM1')
ppt = pd.read_csv("ppt.csv")
et = pd.read_csv("et.csv")
tmx = pd.read_csv("tmax.csv")
weather_SIM = pd.read_csv("Weather_SIM1.csv")
big_frame = pd.concat([weather_SIM, ppt,et,tmx], axis=1)
np.savetxt('Weather.txt', big_frame, fmt= "%0.0f\t %0.0f\t %0.0f\t %0.1f\t %0.1f\t %0.1f", header='Year\t Month\t Date\t ppt\t et\t tmax', comments='')
引起了问题。
答案 0 :(得分:0)
该错误与django-viewflow不相关。这是外键字段的标准django错误,这意味着self.cluster为None。