Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 12413E0099B; Wed, 2 Nov 2016 10:01:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.49 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B6FF8E00912 for ; Wed, 2 Nov 2016 10:01:51 -0700 (PDT) Received: by mail-wm0-f49.google.com with SMTP id a197so153733960wmd.0 for ; Wed, 02 Nov 2016 10:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=9TtlE7FXBRgrUj8kQsTyNri1tXe3ABdB8n11maxVkyA=; b=tla3Rzba5RgqPPPoUwEttKqUgagMANJCQogJ+vYvwt3Pq8DbOBrnrmgRDD9eZxnNLk p3phNGMWFNZIIrJmFnh3Ae0G60T8OjKGahNoptA3JAZl5NbNZ+xarRJBVmUmhsxy7RU/ sBW5N/0NGiRxSi1xRgo0KWS8xo1KuG3YJTSOgjjjV6gyPspjRIvQPhzE1LgcY3X+tlTP DTC8IPuDjCtPYH+dGzMD3OMr1AsPi+T7RrXj6m+jkAisruTUPZY0fQ4Y/NAZiVN8NFuw UulVE+YDaV3O6oZiYkzqffln8w8yxkGe50R7liPsb+zwH1paRkKHYdR8lEzFZNAzn8Jx Torw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9TtlE7FXBRgrUj8kQsTyNri1tXe3ABdB8n11maxVkyA=; b=FJWTFSfueiTyx2irqJHRegn5VZW+CyUlB/HMaxzFRupCjzZVD/C/SLdZzxsW3ne2hG U6rQQstICvIqhwzXcBhb+xHjK8KWtPaPT1xlu3d/H/kK6/Bu+f0W+XrLT08SOeElqQq7 Ikg2DimJRGw+7YzSG384Sr856mxVxDiMBSRjKqY09vUJJ3uD1GLmQ7ebKAa9vP4Jt4Fa dp6ZLzOOaW3PtvgW+PlwAY8uUigWGtYItJAlc8+s+X0EXLnMVzozcUKJ+epbzEsqr0Dg 12aGgU7wym/CuySsxUNFj7EyvH+Zqtsra6DLBNNLx9NW8Vbeuf3iGEqw2tqS+rrgnVwe lWfQ== X-Gm-Message-State: ABUngvffqfjPxFoLkanb3VwVrpnkgPAV5fM2jMCB4IW/wCO03CHkOIpy2ta+OX4W15CEhb7q X-Received: by 10.28.191.142 with SMTP id o14mr3971714wmi.124.1478106110393; Wed, 02 Nov 2016 10:01:50 -0700 (PDT) Received: from localhost.localdomain ([192.198.151.62]) by smtp.gmail.com with ESMTPSA id r4sm4283712wmb.19.2016.11.02.10.01.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Nov 2016 10:01:49 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Wed, 2 Nov 2016 17:01:47 +0000 Message-Id: <1478106107-18422-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: Add an example production settings file X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2016 17:01:55 -0000 Add an example settings that can be used for the basis of the production instance of Toaster. [YOCTO #10581] Signed-off-by: Michael Wood --- .../toastermain/settings_production_example.py | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 bitbake/lib/toaster/toastermain/settings_production_example.py diff --git a/bitbake/lib/toaster/toastermain/settings_production_example.py b/bitbake/lib/toaster/toastermain/settings_production_example.py new file mode 100644 index 0000000..61a2888 --- /dev/null +++ b/bitbake/lib/toaster/toastermain/settings_production_example.py @@ -0,0 +1,58 @@ +# +# ex:ts=4:sw=4:sts=4:et +# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- +# +# BitBake Toaster Implementation +# +# Copyright (C) 2016 Intel Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +# See Django documentation for more information about deployment +# https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ + +# Toaster production settings example overlay +# To use this copy this example to "settings_production.py" and set in your +# environment DJANGO_SETTINGS_MODULE=toastermain.settings_production +# This can be permanently set in a new .wsgi file + +from toastermain.settings import * # NOQA + +# Set this value! +SECRET_KEY = None + +# Switch off any debugging +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'toaster_data', + 'USER': 'toaster', + 'PASSWORD': 'yourpasswordhere', + 'HOST': '127.0.0.1', + 'PORT': '3306', + } +} + +# Location where static files will be placed by "manage.py collectstatic" +STATIC_ROOT = '/var/www/static-toaster/' + +# URL prefix for static files. +STATIC_URL = '/static-toaster/' + +# Hosts that Django will serve +# https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-ALLOWED_HOSTS +ALLOWED_HOSTS = ['toaster-example.example.com'] -- 2.7.4