diff --git a/README b/README index f1b6cda..d7a4431 100644 --- a/README +++ b/README @@ -64,3 +64,9 @@ Now start the development server:: python manage.py runserver Enjoy! + +Environment Settings +==================== + +LODGEIT_TITLE_OVERRIDE : + Arbitrary string to override the main heading for site customisation diff --git a/lodgeit/utils.py b/lodgeit/utils.py index 6ef3480..0031901 100644 --- a/lodgeit/utils.py +++ b/lodgeit/utils.py @@ -8,6 +8,7 @@ :license: BSD """ import base64 +import os import re import time from os import path @@ -45,6 +46,8 @@ def url_for(endpoint, external=False, **values): jinja_environment.globals['url_for'] = url_for +jinja_environment.globals['title'] = \ + os.getenv('LODGEIT_TITLE_OVERRIDE', 'Lodge It') def generate_user_hash(): diff --git a/lodgeit/views/layout.html b/lodgeit/views/layout.html index dfecbed..a63e6c3 100644 --- a/lodgeit/views/layout.html +++ b/lodgeit/views/layout.html @@ -18,7 +18,7 @@