Source

PIGS / blog / views.py

from django.shortcuts import render_to_response
######
# from my_PIGS.default.knowledge #
######
from my_PIGS.default.knowledge.query.get import blog_all

def home(request,template_name='blog/home.html'):
    blogs = blog_all()
    return render_to_response(template_name,{
        'blogs' : blogs,
        }
    )