git://git.halfball.org
/
ansiblebook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306e78a
)
Set ALLOWED_HOSTS
author
Lorin Hochstein
<lhochstein@netflix.com>
Tue, 4 Oct 2016 05:17:23 +0000
(22:17 -0700)
committer
Lorin Hochstein
<lhochstein@netflix.com>
Tue, 4 Oct 2016 05:17:23 +0000
(22:17 -0700)
ch05/mezzanine-dev.sh
patch
|
blob
|
history
diff --git
a/ch05/mezzanine-dev.sh
b/ch05/mezzanine-dev.sh
index
9ad0cfe
..
da5273f
100755
(executable)
--- 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