+from django.conf import settings
+from diario.settings import DIARIO_NUM_LATEST
+from diario.models import Entry
+from contents.models import Menu, Index
+from ema.views import get_entry_by_slug
+
+from django.contrib import admin
+admin.autodiscover()
+
+
+MEDIA = {'document_root': settings.INSTANCE('media')}
+
+# the only difference between info_dict and info_dict_full is that the
+# full version contains all entries and the other has just entries
+# without menus.
+
+hasmenu = [x.entry.id for x in Menu.objects.all()]
+inindex = [x.entry.id for x in Index.objects.all()]
+
+info_dict = {
+ 'queryset': Entry.published_on_site.exclude(id__in=hasmenu).filter(id__in=inindex),
+ 'template_object_name': 'entry',
+ 'extra_context': {'menus': Menu.objects.all()},
+}
+
+info_dict_full = {
+ 'queryset': Entry.published_on_site.all(),
+ 'template_object_name': 'entry',
+ 'extra_context': {'menus': Menu.objects.all()},
+}