from blog.models import BlogEntry, BlogSection
from django.http import Http404, HttpResponse
from blog.models import BlogEntry, BlogSection
from django.http import Http404, HttpResponse
from django.template import RequestContext, loader
from django.core.paginator import Paginator
from django.conf import settings
from django.template import RequestContext, loader
from django.core.paginator import Paginator
from django.conf import settings
"entries": paginated_entries.object_list,
"title": settings.BLOG_TITLE,
"page": page,
"entries": paginated_entries.object_list,
"title": settings.BLOG_TITLE,
"page": page,
raise Http404
def blog_view(request, year=None, month=None, day=None, hour=None, minutes=None, section=None, slug=None):
raise Http404
def blog_view(request, year=None, month=None, day=None, hour=None, minutes=None, section=None, slug=None):
try:
blog_entry = BlogEntry.objects.get(publish_date__year=year, publish_date__month=month, publish_date__day=day, slug__exact=slug)
template_name = "blog/single_entry_%s.html" %(blog_entry.format,)
try:
blog_entry = BlogEntry.objects.get(publish_date__year=year, publish_date__month=month, publish_date__day=day, slug__exact=slug)
template_name = "blog/single_entry_%s.html" %(blog_entry.format,)
"entries": paginated_entries.object_list,
"title": settings.BLOG_TITLE,
"page": page,
"entries": paginated_entries.object_list,
"title": settings.BLOG_TITLE,
"page": page,