Skip to content
Permalink
f5215298d6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (19 sloc) 712 Bytes
from django.template import Context, loader
from django.http import HttpResponse
from pressreleases.models import *
def releaselist(request):
Template = loader.get_template('press/index.html')
Listofreleases = Release.objects.order_by('-Date')
Content = Context ({
'Style' : 'Portal',
'Listofreleases' : Listofreleases,
})
return HttpResponse(Template.render(Content))
def releasedetail(request,number):
Template = loader.get_template('press/detail.html')
Currentrelease = Release.objects.get(pk=number)
Content = Context ({
'Style' : 'Portal',
'Currentrelease' : Currentrelease,
})
return HttpResponse(Template.render(Content))