Files @ 3507839c63dd
Branch filter:

Location: website/www/conservancy/

Rename file names to remove the word "draft".

RedirectPermeant's have been added server-side to handle the fact that
the URLs were already live.
from django.shortcuts import render_to_response
from import PressRelease
from import Entry as BlogEntry
from datetime import datetime, timedelta

def view(request):
    """Conservancy front page view

    Performs all object queries necessary to render the front page.

    press_releases = PressRelease.objects.all().filter(, sites=2)[:5]
    blog = BlogEntry.objects.all().filter([:3]

    c = {
        'press_releases': press_releases,
        'blog' : blog
    return render_to_response("frontpage.html", c)