Files @ a18e221dc6ce
Branch filter:

Location: website/www/conservancy/

Move email subscribe box to the front page only.

It just looked wrong up there on top of the page. I know that's what I
suggested to Paul to do it, but 11 months later, when I finally accepted his
merge request, it just didn't make sense.
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)