diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 5 |
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 = { | |||
233 | from os.path import dirname as DN | 231 | from os.path import dirname as DN |
234 | SITE_ROOT=DN(DN(os.path.abspath(__file__))) | 232 | SITE_ROOT=DN(DN(os.path.abspath(__file__))) |
235 | 233 | ||
234 | import subprocess | ||
235 | TOASTER_VERSION = subprocess.Popen('cd %s; git branch | grep "^* " | tr -d "* "' % SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] | ||
236 | |||
236 | ROOT_URLCONF = 'toastermain.urls' | 237 | ROOT_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. |