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
Inside the issues
app, but when I try to do the same inside the users
app
It’s blank.
Can anyone give me a definitive answer on how to fix this? Are there any examples I can use?