Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | # BitBake Toaster Implementation |
| 3 | # |
| 4 | # Copyright (C) 2016 Intel Corporation |
| 5 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame^] | 6 | # SPDX-License-Identifier: GPL-2.0-only |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 8 | |
| 9 | # See Django documentation for more information about deployment |
| 10 | # https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ |
| 11 | |
| 12 | # Toaster production settings example overlay |
| 13 | # To use this copy this example to "settings_production.py" and set in your |
| 14 | # environment DJANGO_SETTINGS_MODULE=toastermain.settings_production |
| 15 | # This can be permanently set in a new .wsgi file |
| 16 | |
| 17 | from toastermain.settings import * # NOQA |
| 18 | |
| 19 | # Set this value! |
| 20 | SECRET_KEY = None |
| 21 | |
| 22 | # Switch off any debugging |
| 23 | DEBUG = True |
| 24 | TEMPLATE_DEBUG = DEBUG |
| 25 | |
| 26 | DATABASES = { |
| 27 | 'default': { |
| 28 | 'ENGINE': 'django.db.backends.mysql', |
| 29 | 'NAME': 'toaster_data', |
| 30 | 'USER': 'toaster', |
| 31 | 'PASSWORD': 'yourpasswordhere', |
| 32 | 'HOST': '127.0.0.1', |
| 33 | 'PORT': '3306', |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | # Location where static files will be placed by "manage.py collectstatic" |
| 38 | STATIC_ROOT = '/var/www/static-toaster/' |
| 39 | |
| 40 | # URL prefix for static files. |
| 41 | STATIC_URL = '/static-toaster/' |
| 42 | |
| 43 | # Hosts that Django will serve |
| 44 | # https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-ALLOWED_HOSTS |
| 45 | ALLOWED_HOSTS = ['toaster-example.example.com'] |