diff options
| -rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index 74ab60462b..6572acc696 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
| @@ -107,9 +107,19 @@ def getDATABASE_URL(): | |||
| 107 | 107 | ||
| 108 | 108 | ||
| 109 | 109 | ||
| 110 | # Hosts/domain names that are valid for this site; required if DEBUG is False | 110 | # Update as of django 1.8.16 release, the '*' is needed to allow us to connect while running |
| 111 | # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts | 111 | # on hosts without explicitly setting the fqdn for the toaster server. |
| 112 | ALLOWED_HOSTS = [] | 112 | # See https://docs.djangoproject.com/en/dev/ref/settings/ for info on ALLOWED_HOSTS |
| 113 | # Previously this setting was not enforced if DEBUG was set but it is now. | ||
| 114 | # The previous behavior was such that ALLOWED_HOSTS defaulted to ['localhost','127.0.0.1','::1'] | ||
| 115 | # and if you bound to 0.0.0.0:<port #> then accessing toaster as localhost or fqdn would both work. | ||
| 116 | # To have that same behavior, with a fqdn explicitly enabled you would set | ||
| 117 | # ALLOWED_HOSTS= ['localhost','127.0.0.1','::1','myserver.mycompany.com'] for | ||
| 118 | # Django >= 1.8.16. By default, we are not enforcing this restriction in | ||
| 119 | # DEBUG mode. | ||
| 120 | if DEBUG is True: | ||
| 121 | # this will allow connection via localhost,hostname, or fqdn | ||
| 122 | ALLOWED_HOSTS = ['*'] | ||
| 113 | 123 | ||
| 114 | # Local time zone for this installation. Choices can be found here: | 124 | # Local time zone for this installation. Choices can be found here: |
| 115 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | 125 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
