summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/settings.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-02-06 15:32:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-10 23:07:48 +0000
commitd81e5141c10a97bf5764892f9b20933b751c1da3 (patch)
tree64a82acb15fe06a8a23e9618ff6a8eb18f604513 /bitbake/lib/toaster/toastermain/settings.py
parentda8110a86ad8b57b8c41873d40aeac346ee66b88 (diff)
downloadpoky-d81e5141c10a97bf5764892f9b20933b751c1da3.tar.gz
bitbake: toaster: display Toaster mode and version in debug mode
This patch displays the current running mode and checked-out git branch as Toaster version when running in debug mode. (Bitbake rev: 93e4f8c44273f4657c5be4c00b61db12aa875e31) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings.py')
-rw-r--r--bitbake/lib/toaster/toastermain/settings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py
index ea7c3534da..b6a42c0626 100644
--- a/bitbake/lib/toaster/toastermain/settings.py
+++ b/bitbake/lib/toaster/toastermain/settings.py
@@ -211,8 +211,6 @@ MIDDLEWARE_CLASSES = (
211 'django.middleware.csrf.CsrfViewMiddleware', 211 'django.middleware.csrf.CsrfViewMiddleware',
212 'django.contrib.auth.middleware.AuthenticationMiddleware', 212 'django.contrib.auth.middleware.AuthenticationMiddleware',
213 'django.contrib.messages.middleware.MessageMiddleware', 213 'django.contrib.messages.middleware.MessageMiddleware',
214 'django.middleware.cache.UpdateCacheMiddleware',
215 'django.middleware.cache.FetchFromCacheMiddleware',
216 # Uncomment the next line for simple clickjacking protection: 214 # Uncomment the next line for simple clickjacking protection:
217 # 'django.middleware.clickjacking.XFrameOptionsMiddleware', 215 # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
218) 216)
@@ -233,6 +231,9 @@ CACHES = {
233from os.path import dirname as DN 231from os.path import dirname as DN
234SITE_ROOT=DN(DN(os.path.abspath(__file__))) 232SITE_ROOT=DN(DN(os.path.abspath(__file__)))
235 233
234import subprocess
235TOASTER_VERSION = subprocess.Popen('cd %s; git branch | grep "^* " | tr -d "* "' % SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
236
236ROOT_URLCONF = 'toastermain.urls' 237ROOT_URLCONF = 'toastermain.urls'
237 238
238# Python dotted path to the WSGI application used by Django's runserver. 239# Python dotted path to the WSGI application used by Django's runserver.