We would require more information;
What errors do you get?
What are you seeing?

Either way, this is not correct: tank = tank_system.object.get(id(5))
It should be: tank = tank_system.object.get(id=5)

I suggest going through the django tutorial if you haven't already.

On Tue, Nov 13, 2018 at 10:29 AM Rookies DJ <huang_wei...@hotmail.com>
wrote:

>
>
> On Monday, 12 November 2018 21:26:48 UTC+8, Cuneyt Mertayak wrote:
>>
>> The content for the `render` method is supposed to be a dictionary:
>> https://docs.djangoproject.com/en/2.1/topics/http/shortcuts/#optional-arguments
>>
>> So change it to this render(requset, "FrounterWeb/body.html",{'tank':
>> tank})
>>
>> Also in the template file you want to display the properties of the ORM
>> (tank_system) object I guess, change them to <td>{{tank.EC}}</td>, <td>
>> {{tank. temp}}</td>, respectively.
>>
>> Hope it helps!
>>
>
> Thx for help
> Cuneyt Mertayak
>
>  but it didn't work, appreciate the reply, but suspect that the whiten the
> request to return there nothing, is the whole code become empty, that my
> believes
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/45d9f4af-4807-4692-8d6e-dcc7ab14818a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/45d9f4af-4807-4692-8d6e-dcc7ab14818a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwtXp1aegZkZBNXqMXZfqs%2Bo_YhJonxd%2BN4P4ecRahEuqsqrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to