Hi Omar Abou Mrad thanks for helping me,
 
Please read the ones in red:

What are you seeing?
My Web page as I want but, i'm missing the key value form my database

What errors do you get?
no errors everything working fine

in summary i'm not having any errors but i can't see anything form my 
database 

My project goal is retrieve a data form the database and display on web-page

But i can't pass any value form my database into my html page

Thanks help Omar Abou Mrad


On Tuesday, 13 November 2018 17:07:47 UTC+8, Omar Abou Mrad wrote:
>
> 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 <[email protected] 
> <javascript:>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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 [email protected].
To post to this group, send email to [email protected].
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/40fc4541-5242-4b21-897e-b064bcde519b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to