title: Django and Ajax - What can I do?
body: <p>I'm almost done with my site except for the last part where I need to make the gallery page support ajax to change the page number using Ajax.</p>
  
  <p>Gallery pages view:</p>
  
  <pre><code>def gallerypages(request, page):
      items = Example.objects.all().order_by('-pk')
      categories = Categorie.objects.all()
  
      paginator = Paginator(items, 12)
  
      try:
         itemsList = paginator.page(page)
      except PageNotAnInteger:
         itemsList = paginator.page(1)
      except EmptyPage:
         itemsList = paginator.page(paginator.num_pages)
  
      if items.count()&gt;1:
         return render_to_response('gallery.html', {'items': itemsList,'categories': categories,}, context_instance = RequestContext(request))
  </code></pre>
  
  <p>Dajax/Dajaxice are not very well documented... I only need to show some images.</p>