aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/content')
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md1
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/hosts-file.md7
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md5
3 files changed, 4 insertions, 9 deletions
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
index 741bf28e..7419858e 100644
--- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
+++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md
@@ -43,7 +43,6 @@ For any staff member, since you have write permissions already to the original r
# Development environment
1. [Clone your fork to a local project directory](../cloning-repository/)
2. [Install the project's dependencies](../installing-project-dependencies/)
-3. [Prepare your hosts file (Optional)](../hosts-file/)
---
# Test server and bot account
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/hosts-file.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/hosts-file.md
index 5d55a7f3..bba5722d 100644
--- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/hosts-file.md
+++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/hosts-file.md
@@ -8,16 +8,13 @@ toc: 3
# What's a hosts file?
The hosts file maps a hostname/domain to an IP address, allowing you to visit a given domain on your browser and have it resolve by your system to the given IP address, even if it's pointed back to your own system or network.
-When staging a local [Site](https://pythondiscord.com/pages/contributing/site/) project, you will need to add some entries to your hosts file so you can visit the site with the domain `http://pythondiscord.local`
+When staging a local [Site](https://pythondiscord.com/pages/contributing/site/) project, you may want to add an entries to your hosts file so you can visit the site with the domain `http://pythondiscord.local`. This is purely for convenience, and you can use `localhost` or `127.0.0.1` instead if you prefer.
# What to add
-You would add the following entries to your hosts file.
+You would add the following entry to your hosts file.
```plaintext
127.0.0.1 pythondiscord.local
-127.0.0.1 api.pythondiscord.local
-127.0.0.1 staff.pythondiscord.local
-127.0.0.1 admin.pythondiscord.local
```
# How to add it
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md
index 24227f24..df75e81a 100644
--- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md
+++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md
@@ -43,7 +43,6 @@ For any Core Developers, since you have write permissions already to the origina
1. [Clone your fork to a local project directory](../cloning-repository/)
2. [Install the project's dependencies](../installing-project-dependencies/)
-3. [Prepare your hosts file](../hosts-file/)
## Without Docker
@@ -84,7 +83,7 @@ detailed information about these settings.
#### Notes regarding `DATABASE_URL`
-- If the database is hosted locally i.e. on the same machine as the webserver, then use `localhost` for the host. Windows and macOS users may need to use the [Docker host IP](../hosts-file/#windows) instead.
+- If the database is hosted locally i.e. on the same machine as the webserver, then use `localhost` for the host. Windows and macOS users may need to use the [Docker host IP](https://stackoverflow.com/questions/22944631/how-to-get-the-ip-address-of-the-docker-host-from-inside-a-docker-container) instead.
- If the database is running in Docker, use port `7777`. Otherwise, use `5432` as that is the default port used by PostegreSQL.
- If you configured PostgreSQL in a different manner or you are not hosting it locally, then you will need to determine the correct host and port yourself.
The user, password, and database name should all still be `pysite` unless you deviated from the setup instructions in the previous section.
@@ -145,7 +144,7 @@ Unless you are editing the Dockerfile or docker-compose.yml, you shouldn't need
Django provides an interface for administration with which you can view and edit the models among other things.
-It can be found at [http://admin.pythondiscord.local:8000](http://admin.pythondiscord.local:8000). The default credentials are `admin` for the username and `admin` for the password.
+It can be found at [http://127.0.0.1:8000/admin/](http://127.0.0.1:8000/admin/). The default credentials are `admin` for the username and `admin` for the password.
---