Commit 83b28f44 authored by ottona's avatar ottona

added favicon plus func, unpub posts only visible to admin

parent 4195802a
......@@ -2,6 +2,7 @@ from blogapp.models import blogentry, blogcomment, blogcategory
from django.shortcuts import render, get_object_or_404
# from django.template import RequestContext
from django import forms
from django.http import Http404
from polysite.globals import CustomRenderer
import datetime
import mistune
......@@ -28,6 +29,10 @@ def list_category(request, category_id):
def detail(request, blogentry_id):
blogdetail = get_object_or_404(blogentry, pk=blogentry_id)
if not blogdetail.published and not request.user.is_authenticated():
raise Http404("")
if request.method == 'POST':
fml = BlogCommentForm(request.POST)
if fml.is_valid():
No preview for this file type
......@@ -3,6 +3,7 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static "general.css" %}" />
<link rel="shortcut icon" href="{% static "favicon.ico" %}" />
{% block head %}{% endblock %}
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment