所以我最近对我的Django模型做了一些小改动(增加了一个字段)。我过去做过很多次的事情。现在,当我在服务器上进行移动时,我得到以下错误。我不知道他们的意思或从哪里开始诊断问题。在我的本地机器上一切正常。
Exception in thread Thread-1 (most likely raised during interpreter shutdown):Ex ception in thread Thread-2 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 1082, in run
File "/home/pentaqueue/.local/lib/python2.7/site-packages/cassiopeia/type/api/ rates.py", line 82, in _reset
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 1082, in run
File "/home/pentaqueue/.local/lib/python2.7/site-packages/cassiopeia/type/api/ rates.py", line 82, in _reset
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
编辑:根据请求添加models.py代码。
from django.db import models
from django.contrib.auth.models import User
class Virtues(models.Model):
summoner_id = models.CharField(max_length=20)
summoner_name = models.CharField(max_length=50)
virtue_teamwork = models.BigIntegerField(default=0)
virtue_proficiency = models.BigIntegerField(default=0)
virtue_friendliness = models.BigIntegerField(default=0)
pass
class championDB(models.Model):
summoner_id = models.CharField(max_length=20)
summoner_name = models.CharField(max_length=50)
champion_name = models.CharField(max_length=50)
champion_winratio = models.FloatField(default=0)
champion_gamesplayed = models.BigIntegerField(default=0)
champion_kda = models.FloatField(default=0)
pass
class gamesDB(models.Model):
summoner_id = models.CharField(max_length=20)
game_id = models.CharField(max_length=100)
pass
class summonerDB(models.Model):
summoner_id = models.CharField(max_length=20)
summoner_name = models.CharField(max_length=50)
ranked_winratio = models.FloatField(default=0)
ranked_gamesplayed = models.BigIntegerField(default=0)
unranked_winratio = models.FloatField(default=0)
unranked_gamesplayed = models.BigIntegerField(default=0)
virtues = models.ManyToManyField(Virtues)
champions = models.ManyToManyField(championDB)
games = models.ManyToManyField(gamesDB)
class SummonerModel(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
validation_code = models.CharField(max_length=8, default="XXXXXXXX")
validated = models.CharField(max_length=3, default="yes")
summoner_id = models.CharField(max_length=100)
region = models.CharField(max_length=5, default="NA")
pass