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
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*
*>>>*
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
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
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
lava-users@lists.lavasoftware.org