From fb33155fc7d6bec60f54bcecb16f51e9595b02e2 Mon Sep 17 00:00:00 2001 From: Cory Locklear Date: Thu, 20 Apr 2017 12:07:58 -0500 Subject: [PATCH] Fixes #1097. Add alert for potential edit of settings.py for ALLOWED_HOSTS for Windows 10 (#2886) --- compose/django.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/compose/django.md b/compose/django.md index 2f279c3d14..584f716413 100644 --- a/compose/django.md +++ b/compose/django.md @@ -175,6 +175,17 @@ In this section, you set up the database connection for Django. ![Django example](images/django-it-worked.png) +> **Note:** +> On certain platforms (Windows 10), you may additionally need to edit `ALLOWED_HOSTS` +> inside settings.py and add your Docker hostname or IP to the list. For demo +> purposes, you may set the value to: +> +> ALLOWED_HOSTS = ['*'] +> +> Please note this value is **not** safe for production usage. Refer to the +> [Django documentation](https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts) +> for more information. + ## More Compose documentation - [User guide](index.md)