summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastermain/settings.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-08-08 17:17:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 13:56:39 +0100
commit6618613c9210fb44d36d90f5f2404b435f10dfc8 (patch)
tree071cfc8ed39aa2f43ecb74ba6a9041bba14ba31b /lib/toaster/toastermain/settings.py
parent89e13579e1b44b738f10fadec8454aa0e6f073af (diff)
downloadbitbake-contrib-6618613c9210fb44d36d90f5f2404b435f10dfc8.tar.gz
toaster: enable admin interface on select models
We enable the admin interface in Toaster. We add admin models for Build Environments (where the sysadmin can configure where the builds take place) and for Layer Sources (marking the upstream provider for layer information). The admin interface and associated data are enabled only for the MANAGED version. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastermain/settings.py')
-rw-r--r--lib/toaster/toastermain/settings.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py
index 1dab25aa6..42581f2df 100644
--- a/lib/toaster/toastermain/settings.py
+++ b/lib/toaster/toastermain/settings.py
@@ -232,17 +232,13 @@ TEMPLATE_CONTEXT_PROCESSORS = ('django.contrib.auth.context_processors.auth',
INSTALLED_APPS = (
#'django.contrib.sites',
- #'django.contrib.messages',
'django.contrib.staticfiles',
- # Uncomment the next line to enable the admin:
- # 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
- 'bldcontrol',
)
SOUTH_TESTS_MIGRATE = False
@@ -251,7 +247,11 @@ SOUTH_TESTS_MIGRATE = False
if MANAGED:
INSTALLED_APPS = ('django.contrib.auth',
'django.contrib.contenttypes',
- 'django.contrib.sessions',) + INSTALLED_APPS
+ 'django.contrib.messages',
+ 'django.contrib.sessions',
+ # Uncomment the next line to enable the admin:
+ 'django.contrib.admin',
+ ) + INSTALLED_APPS
# We automatically detect and install applications here if