From: Lorin Hochstein Date: Tue, 4 Oct 2016 05:17:23 +0000 (-0700) Subject: Set ALLOWED_HOSTS X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=c447cd4b9e49994a9d413edd037e08d703b859cf;p=ansiblebook.git Set ALLOWED_HOSTS --- diff --git a/ch05/mezzanine-dev.sh b/ch05/mezzanine-dev.sh index 9ad0cfe..da5273f 100755 --- a/ch05/mezzanine-dev.sh +++ b/ch05/mezzanine-dev.sh @@ -4,5 +4,6 @@ source venv/bin/activate pip install mezzanine mezzanine-project myproject cd myproject +sed -i.bak 's/ALLOWED_HOSTS = \[\]/ALLOWED_HOSTS = ["127.0.0.1"]/' myproject/settings.py python manage.py createdb python manage.py runserver