小编Fil*_*lný的帖子

ssh远程主机标识已更改

我重新安装了我的服务器,我收到这些消息:

[user@hostname ~]$ ssh root@pong
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
6e:45:f9:a8:af:38:3d:a1:a5:c7:76:1d:02:f8:77:00.
Please contact your system administrator.
Add correct host key in /home/hostname /.ssh/known_hosts to get rid of this message.
Offending RSA key …
Run Code Online (Sandbox Code Playgroud)

ssh verification man-in-the-middle ipa

574
推荐指数
22
解决办法
51万
查看次数

无法将对象添加到Django的多对多字段中

我正在尝试使用多对多字段制作应用.而且我写它并且不会尝试它.所以,我开始shell并制作一些对象,我得到了这个错误.

>>> mzz.controlsOrganization.add(org1, org2)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/fdobrovolny/virtualenv/first/lib/python2.7/site-packages/django/db/models/fields/related.py", line 848, in __get__
through=self.field.rel.through,
  File "/home/fdobrovolny/virtualenv/first/lib/python2.7/site-packages/django/db/models/fields/related.py", line 538, in __init__
(instance, source_field_name))
ValueError: "<MZZ: TEST 1>" needs to have a value for field "mzz" before this many-to-many relationship can be used.
Run Code Online (Sandbox Code Playgroud)

MZZ类:

class MZZ(models.Model):
    name = models.CharField(max_length=100)
    name.short_decription = u'Název MZZ'
    ident = models.CharField(max_length=45, unique=True)
    active = models.BooleanField()
    active.boolean = True
    kind = models.ForeignKey(kind)
    deliveryDate = models.DateField()
    stateAfterDelivery = models.CharField(max_length=200)
    dateOfCommissioning = …
Run Code Online (Sandbox Code Playgroud)

django many-to-many django-models python-2.7

1
推荐指数
1
解决办法
6053
查看次数