settings_production_example.py 1.2 KB

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