Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There were a couple of "small" mistakes made by me of course, which seemed insignificant, but they aren't.</p> <p><strong>Main template</strong>, or parent template which holds the page_template, should contain something like this:</p> <pre><code>&lt;div class="endless_page_template"&gt; {% include page_template %} {% block js %} {{ block.super }} &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; &lt;script src="{{ STATIC_URL }}js/endless-pagination.js"&gt;&lt;/script&gt; &lt;script&gt;$.endlessPaginate();&lt;/script&gt; {% endblock %} &lt;/div&gt; </code></pre> <p>So, it must be in a div with that specific class, which I overlooked yesterday.</p> <p><strong>page_template</strong> looks something like this:</p> <pre><code>{% load endless %} {% paginate projekti %} {% for projekat in projekti %} {{ projekat.name }} {% endfor %} {% show_pages %} </code></pre> <p>This of course can be prettified with some HTML (in my case Zurb Foundation's accordion element). And last but not the least - the view:</p> <pre><code>@page_template('userena/profil_strana.html') # name of the page_template def public_details(request, username=None, template = 'userena/profil.html', extra_context=None): userObjekat = User.objects.get(username=username) # getting user object user_profil = userObjekat.get_profile() # getting user's profile context = { 'projekti': user_profil.projekat_set.all(), # and a list of objects to iterate thru } if extra_context is not None: context.update(extra_context) return userena_views.profile_detail(request, extra_context=context, username=username, template_name=template) </code></pre> <p>And it works.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload