Skip to content

Commit b3e3c69

Browse files
committed
Added localhost to ALLOWED_HOSTS in settings.py
in order to make it work with GitHub Codespace. It also doesn't break anything for local environment.
1 parent 52d42f2 commit b3e3c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/django_start_project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ match our hostname on PythonAnywhere once we deploy our application so we will c
111111

112112
{% filename %}mysite/settings.py{% endfilename %}
113113
```python
114-
ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
114+
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '.pythonanywhere.com']
115115
```
116116

117117
> **Note**: If you're using a Chromebook, add this line at the bottom of your settings.py file:

0 commit comments

Comments
 (0)