How to use views from 2 different apps in django

How do I use the same functionality from the views and models of one app, into a different one?

I have 2 apps, issues and users, I’m trying to use the model and views from issues inside users exactly the way I created them in the issues templates.

Here’s some code to illustrate what I’m trying to do

this is in the issues app

issues/total_issues.html

<li>
    <a href="" class="active">All <span>{{ page_obj.paginator.count }}</span></a>
</li>

This outputs
Screenshot 2022-04-18 201855

Inside the issues app, but when I try to do the same inside the users app

Screenshot 2022-04-18 202219

It’s blank.

Can anyone give me a definitive answer on how to fix this? Are there any examples I can use?

Are you using the Django paginators here?

If so, then you don’t use the ones from issues. You create / use a new paginator for users.

Again, the template is not part of this discussion. You need to stay focused on your views.

Please post the specific view for issues that has the functionality that you wish to use in users.