From ec45a4c250aae6e73a27e60c5a8c53a6e0d393a5 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 24 Oct 2017 14:46:32 +1100 Subject: [PATCH] Add support for favicons using django-favicon-plus --- Pipfile | 1 + Pipfile.lock | 14 +++++++++++++- lemoncurry/settings/base.py | 1 + lemoncurry/templates/lemoncurry/layout.html | 3 ++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index 918da37..4c62010 100644 --- a/Pipfile +++ b/Pipfile @@ -13,6 +13,7 @@ gunicorn = "*" "psycopg2" = "*" pillow = "*" python-memcached = "*" +django-favicon-plus = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index f86078b..0c9248d 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "d990c94e85c7a9cc6d3e11591e637a33bbfd579ae002d6b6e6e49a25df640f27" + "sha256": "388a82f0237a5312720d62a0aeee6365922fc525d666039e15ba70000430630c" }, "host-environment-markers": { "implementation_name": "cpython", @@ -41,6 +41,12 @@ ], "version": "==1.0.2" }, + "django-compat": { + "hashes": [ + "sha256:b20fb26d15bbedbf26fb274eb400d6fad2a23655eb5741ae258d39557b5fc5a3" + ], + "version": "==1.0.14" + }, "django-compressor": { "hashes": [ "sha256:7732676cfb9d58498dfb522b036f75f3f253f72ea1345ac036434fdc418c2e57", @@ -48,6 +54,12 @@ ], "version": "==2.2" }, + "django-favicon-plus": { + "hashes": [ + "sha256:824da4ecd3501a157d9538ed1b0672227b2a8a5a3d940bd075ba5b5c636fb400" + ], + "version": "==0.0.7" + }, "gunicorn": { "hashes": [ "sha256:75af03c99389535f218cc596c7de74df4763803f7b63eb09d77e92b3956b36c6", diff --git a/lemoncurry/settings/base.py b/lemoncurry/settings/base.py index d31461e..d4901f5 100644 --- a/lemoncurry/settings/base.py +++ b/lemoncurry/settings/base.py @@ -64,6 +64,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'compressor', + 'favicon', 'lemoncurry', 'home', diff --git a/lemoncurry/templates/lemoncurry/layout.html b/lemoncurry/templates/lemoncurry/layout.html index 4ae16d2..cfc94c8 100644 --- a/lemoncurry/templates/lemoncurry/layout.html +++ b/lemoncurry/templates/lemoncurry/layout.html @@ -1,10 +1,11 @@ -{% load compress lemoncurry_tags static %} +{% load compress favtags lemoncurry_tags static %} {% site_name %} + {% placeFavicon %} {% compress css %}