Wednesday, July 26, 2017

How to create reusable components in django

Hello Guys
I am new to django. i am working on a web app and one of the requirements in the application is a dropdown list in the header that displays the number of users registered to a company that logins( The list is limited to just 10 users). so this list needs to be there for all the pages which the company has access to.

How do i make this list dynamic. Can i create a reusable component or plugin that will just display this in the layout when i call it.
Is there any other way of displaying 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+unsubscribe@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/126224b3-471d-42cf-8e0d-798090a631ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment