Regarding redering data in html templates

20 views
Skip to first unread message

Karthiki Chowdary

unread,
May 25, 2020, 11:06:25 AM5/25/20
to Django users
Hi i was beginner in django and i have a small query in templates. 
For suppose in the home page of any client browser if we have a button like SKINCARE or HEALTH CARE and if we click on that buttons we need to get the data of all skin care products companies logos/ health care companies logos. For that how i can render data in dictionaries suppose i want to render a static data how can i or i want or render a dynamic data how can i do that with dictionaries so other better option. Please help me out in this

Derek

unread,
May 27, 2020, 3:33:13 AM5/27/20
to Django users
Lots of examples out there, but here is one:


For working with static files (such as CSS or images), have a look at:

Karthiki Chowdary

unread,
May 27, 2020, 3:38:26 AM5/27/20
to django...@googlegroups.com
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/yDu49lWWgQI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a4f13dc-c4fe-40aa-a892-0afc6981847c%40googlegroups.com.

Ifeanyi Chielo

unread,
May 27, 2020, 5:22:55 AM5/27/20
to django...@googlegroups.com
at the html file of your template folder, use something like
{{table1.skin_care1}}
{{table1.skin_care2}} etc  

note skin_care1, skin_care etc are fields in your model table 'table1'

Dr. Chielo C. Ifeanyi
Chief Programmer,
Head Webometrics Section
ICT Unit, UNN


On Mon, May 25, 2020 at 4:05 PM Karthiki Chowdary <karthich...@gmail.com> wrote:
Hi i was beginner in django and i have a small query in templates. 
For suppose in the home page of any client browser if we have a button like SKINCARE or HEALTH CARE and if we click on that buttons we need to get the data of all skin care products companies logos/ health care companies logos. For that how i can render data in dictionaries suppose i want to render a static data how can i or i want or render a dynamic data how can i do that with dictionaries so other better option. Please help me out in this

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f2306e60-f48f-4e47-959c-763e9659182b%40googlegroups.com.

VenkataSivaRamiReddy

unread,
May 27, 2020, 10:56:38 AM5/27/20
to django...@googlegroups.com
You got solution for your query....?

Reply all
Reply to author
Forward
0 new messages