title: Django render is very slow
body: <p>This is my training django project. I am using GeoIP, django-modeltranslation, i18n. Showing video gallery page is very slow. The database contains about 20 entries.</p>
  
  <p>Model</p>
  
  <pre><code>from __future__ import unicode_literals
  from django.db import models
  from ckeditor_uploader.fields import RichTextUploadingField
  from datetime import datetime
  import urllib, json, re
  from django.utils.translation import ugettext_lazy as _
  
  class Video(models.Model):
    class Meta:
    abstract = True
  
    title = models.CharField(max_length=80, unique=True)
    text = RichTextUploadingField()
    link = models.CharField(max_length=80)
    slug = models.CharField(db_index=True,max_length=40,blank=True,null=True)
    created_date = models.DateTimeField(auto_now_add=True)
    pub_date = models.DateTimeField(default=datetime.now())
    is_active = models.BooleanField(default=True)
    position = models.IntegerField(default=0)
    meta = models.TextField(blank=True,null=True)
  
    def __unicode__(self):
      return self.title
  
    class VideoMessage(Video):
      class Meta:
        verbose_name = _('VideoMessage')
        verbose_name_plural = _('VideoMessages')
  </code></pre>
  
  <p>Translation</p>
  
  <pre><code>from modeltranslation.translator import translator, TranslationOptions
  from models import VideoMessage
  
  class VideoMessageTranslationOptions(TranslationOptions):
    fields = ('text', 'link', 'meta',)
  
  translator.register(VideoMessage, VideoMessageTranslationOptions)   
  </code></pre>
  
  <p>Views</p>
  
  <pre><code>from django.shortcuts import render
  from django.views.generic import View
  from models import VideoMessage
  
  class Index(View):
    def get(self, request):
      params={}
      messages=VideoMessage.objects.exclude(is_active=False).exclude(link='').order_by('-position')
      params['videos']={}
      params['videos']['message']=messages
      return render(request, 'index.html', params)
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/VEChk.png" rel="nofollow">gprof2dot tree.</a> 100% = ~2000ms</p>