Re: How to create reusable components in django

2017-07-26 Thread Derek
You can include a template snippet into the body of the main template that is rendering your current view. That snippet in turn can either be passed data (such as a user count) from the view that calls the main template - see http://code.runnable.com/UpeQSkq7JxN6AANF/dynamic-content-in-a-templ

How to create reusable components in django

2017-07-26 Thread Vivek
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