Hi ,Remi ,
     It's Ok now ,Thanks for your help!



ÔÚ 2019-01-14 17:10:24£¬"Remi Duraffort" <remi.duraffort@linaro.org> дµÀ£º
Hello,

for some reason, you removed the original Site object (id=1), so you have to change SITE_ID settings and set it to 2.
In /etc/lava-server/settings.conf add
"SITE_ID": 2
This file is a json file, so mind the syntax.


Rgds

Le lun. 14 janv. 2019 ¨¤ 02:40, Chuan Su <lavanxp@126.com> a ¨¦crit :
Hi Remi ,
      It's as below:
    

>>> Site.objects.first().id

2

>>>






ÔÚ 2019-01-11 21:53:26£¬"Remi Duraffort" <remi.duraffort@linaro.org> дµÀ£º
Hello,

could you run "Site.objects.first().id" in the console?


Rgds

Le ven. 11 janv. 2019 ¨¤ 12:18, Chuan Su <lavanxp@126.com> a ¨¦crit :
Dear Remi,
         I ran those commands you suggested in lava shell and it printed as below :
      

Python 3.5.3 (default, Jan 19 2017, 14:11:04)

[GCC 6.3.0 20170118] on linux

Type "help", "copyright", "credits" or "license" for more information.

(InteractiveConsole)

>>> from django.contrib.sites.models import Site

>>> Site.objects.all()

<QuerySet [<Site: 192.168.100.103>]>

>>> Site.objects.count()

1

>>>





 



--
R¨¦mi Duraffort
LAVA Team


 



--
R¨¦mi Duraffort
LAVA Team