| Commit message (Collapse) | Author | Age | Lines |
... | |
| | |
|
|\ \
| | |
| | |
| | |
| | | |
python-discord/swfarnsworth/resource_suggestion_template
Create issue template for resource suggestions.
|
| |\ \
| |/ /
|/| | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Link detail section in environment variables section.
- Update old static path from pre-Docker environment times and mention the
Docker setup.
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 8c21b5b0..24227f24 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 @@
-79,6 +79,9 @@ SECRET_KEY=suitable-for-development-only STATIC_ROOT=staticfiles
```
+The [Configuration in Detail](#configuration-in-detail) section contains
+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.
@@ -173,5 +176,6 @@ The website is configured through the following environment variables:
- **`SECRET_KEY`**: The secret key used in various parts of Django. Keep this
secret as the name suggests! This is managed for you in debug setups.
-- **`STATIC_ROOT`**: The root in which `python manage.py collectstatic` collects
- static files. Optional, defaults to `/var/www/pythondiscord.com`.
+- **`STATIC_ROOT`**: The root in which `python manage.py collectstatic`
+ collects static files. Optional, defaults to `/app/staticfiles` for the
+ standard Docker deployment.
|
| | | |
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
macOS uses `/var/...` as its temp directory, causing issues with the
hardcoded usage of `/tmp` as the temporary directory. Therefore,
relying on tmp is not portable.
Populating the true temporary directory is redundant and may cause more
problems because of nested directories. Move the fake content under a
subdirectory to avoid this issue.
Co-authored-by: MarkKoz <[email protected]>
|
|\ \
| |/
|/| |
|
|/ |
|
|\
| |
| |
| |
| | |
python-discord/include-metricity-db-creation-for-local-setup
Include metricity db creation for local setup guide.
|
| |\
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | | |
python-discord/update-integrity-pattern-for-postgresql-13
Update `IntegrityError` pattern for PostgreSQL 13.
|
|/ /
| |
| |
| |
| |
| |
| | |
A more specific error is raised on higher PostgreSQL versions, for example, as
with the PostgreSQL version running on my local machine. This commit fixes the
error message pattern matching behaviour by adding an optional match to the
detailed error message.
|
|/
|
|
|
| |
This is later mentioned in the connection string, but in the local setup, the
SQL statement to create the database was missing.
|
|\
| |
| | |
Add new infraction filters for the infraction rescheduler
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
command line instructions moved up
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Update guides to use `poetry` instead of `pipenv`
|
| |\ \
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Authenticate with the github api to avoid rate limits
|
|/ / / |
|
|/ / |
|
| |
| |
| |
| | |
Expires and permanent=false are permitted and tested for. Expires_before also filters the database for permanent=false explicitly
|
| |
| |
| |
| |
| | |
The check was backwards, enforcing that no results must ever be returned
Relevant tests have been added that actually fetch an infraction with the right times so that I'm sure it's not still broken
|
| |
| |
| |
| | |
If the before time is after the after time, or if both `type` and `types` are specified
|
| | |
|
| |
| |
| |
| | |
As this is used in the new bot infraction rescheduler
|
| | |
|
|/ |
|
|\
| |
| | |
Update FAQ to clarify reasoning for disallowing certain file types
|
|/
|
|
|
|
| |
Added in wording to clarify why we don't support
the discord .txt, .py, and similar file types even though
it has preview available for them.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
Including the pre-commit config here too, so I can actually lint
|
|\
| |
| | |
Fix Build & Deploy workflow shield
|
|/
|
| |
The workflows: "Build" and "Deploy" seem to have been separated and hence we can't have a single shield for them
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Reorganizes Contributing Guidelines
|
| |\
| |/
|/| |
|