aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'main' into move-config-docs-to-contributing-guideGravatar Kieran Siek2021-06-27-21/+79
|\
| * Recreate nitro message length migration and name itGravatar bast2021-06-24-2/+2
| |
| * Merge remote-tracking branch 'upstream/main' into fix-nitro-messageGravatar bast2021-06-24-19/+21
| |\
| | * Remove RLBot from Communities listGravatar Joe Banks2021-06-21-13/+0
| | |
| | * Use BigInt for permissions field and remove max value validatorGravatar Chris2021-06-18-6/+21
| | | | | | | | | | | | | | | | | | BigInt is needed as Discord's permissions number now exceeds that which can be stored in a normal int. I have removed the max value validator, as this just adds maintanence burden for us each time Discord adds new permissions.
| * | Add pragma: no cover to mark failure condition of test as known okGravatar bast2021-06-24-1/+1
| | |
| * | Adjust Message model to support new nitro messages with over 4000 charsGravatar bast2021-06-18-2/+58
| |/
* | Address review comments.Gravatar Johannes Christ2021-06-07-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | Move configuration section to site contributing guide.Gravatar Johannes Christ2021-06-06-0/+32
|/
* Fix `content` app tests not running on macOS (#519)Gravatar Johannes Christ2021-06-06-41/+51
| | | | | | | | | | | 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]>
* Fix incorrect markdown link.Gravatar kosayoda2021-06-06-1/+1
|
* Merge branch 'main' into include-metricity-db-creation-for-local-setupGravatar Kieran Siek2021-06-05-1/+4
|\
| * Update `IntegrityError` pattern for PostgreSQL 13.Gravatar Johannes Christ2021-06-04-1/+4
| | | | | | | | | | | | | | 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.
* | Include metricity db creation for local setup guide.Gravatar Johannes Christ2021-06-05-0/+1
|/ | | | | This is later mentioned in the connection string, but in the local setup, the SQL statement to create the database was missing.
* Merge branch 'main' into bast0006-new-infraction-filtersGravatar ChrisJL2021-06-04-32/+39
|\
| * table of contents updatedGravatar Soham Banerjee2021-05-31-2/+2
| |
| * command line instructions moved upGravatar Soham Banerjee2021-05-31-23/+28
| |
| * Merge branch 'main' into update/docs-pipenv-to-poetryGravatar Matteo Bertucci2021-05-27-1/+3
| |\
| | * Authenticate with the github api to avoid rate limitsGravatar Chris2021-05-23-1/+3
| | |
| * | chore: Update guides to use poetry instead of pipenvGravatar ToxicKidz2021-05-22-7/+7
| |/
* | Ensure bot/infractions does not accept both expires and permanent filtersGravatar bast2021-05-30-0/+47
| | | | | | | | Expires and permanent=false are permitted and tested for. Expires_before also filters the database for permanent=false explicitly
* | Fix bot/infractions after and before filter check being invertedGravatar bast2021-05-30-4/+17
| | | | | | | | | | 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
* | Raise ValidationError for new bot/infractions filter if the types are invalidGravatar bast2021-05-30-0/+35
| | | | | | | | If the before time is after the after time, or if both `type` and `types` are specified
* | Add tests for failure states of `expires_before` and `expires_after` filtersGravatar bast2021-05-22-0/+14
| |
* | Add a test for ordering infractions returned from the apiGravatar bast2021-05-22-5/+25
| | | | | | | | As this is used in the new bot infraction rescheduler
* | Add tests for new filters on bot/infractions endpointGravatar bast2021-05-21-6/+70
| |
* | Add permanent, types, and expires_at filters to bot/infractions endpointGravatar bast2021-05-21-0/+42
|/
* Update FAQ to clarify file types allowedGravatar Janine vN2021-05-18-0/+2
| | | | | | 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.
* Update project dep guide to only reference poetryGravatar Chris2021-05-17-13/+7
|
* Remove pages prefixGravatar Joe Banks2021-05-16-1/+1
|
* Whitespace removalGravatar Joe Banks2021-05-16-1/+1
|
* Add Moderation Policies to redirectsGravatar Joe Banks2021-05-16-0/+6
|
* Merge branch 'main' into reword-contrib-guidesGravatar ChrisJL2021-05-16-43/+59
|\
| * Merge branch 'main' into update/sir-lancebot-env-varsGravatar Joe Banks2021-05-16-19/+26
| |\
| | * Migrates Sir Lancebot And Python To PoetryGravatar Hassan Abouelela2021-05-16-12/+18
| | | | | | | | | | | | | | | | | | Updates the Python and Sir Lancebot guides to use poetry. Updates the dependency guide to include poetry, and explain when each dependency manager should be used.
| | * Fixes Broken Images In Dependency GuideGravatar Hassan Abouelela2021-05-16-7/+8
| | |
| * | chore: Update sir-lancebot's env var referenceGravatar ToxicKidz2021-05-16-1/+5
| |/
| * Replace references to Zoot with Dave, per the rebranding of that bot.Gravatar swfarnsworth2021-05-15-3/+2
| |
| * Fix typo; 'be come' -> 'become'Gravatar swfarnsworth2021-05-15-1/+1
| |
| * Update rules viewsetGravatar Chris2021-05-15-12/+16
| | | | | | | | This is to reflect the recent changes made to the server rules.
| * Fixed whitespace issue raised by linter.Gravatar swfarnsworth2021-05-15-1/+1
| |
| * Merge branch 'main' of https://github.com/python-discord/site into ↵Gravatar swfarnsworth2021-05-15-7/+13
| |\ | | | | | | | | | swfarnsworth/rules_update
| * | Changed rules to those agreed upon in a prior staff meeting.Gravatar swfarnsworth2021-05-14-7/+9
| | |
* | | Fixes Typo In Contrib GuideGravatar Hassan Abouelela2021-05-16-1/+1
| | | | | | | | | Co-authored-by: ToxicKidz <[email protected]>
* | | Reorganizes Contributing GuidelinesGravatar Hassan Abouelela2021-05-15-5/+9
| |/ |/| | | | | | | Drops mentions of black, renames mentions of precommit to pre-commit, and rewords statements that have caused confusion.
* | Merge branch 'main' into revert-488-vcokltfre/fix/uppercase-envGravatar Hassan Abouelela2021-05-15-6/+12
|\ \
| * \ Merge branch 'main' into joe/redirect-app-301Gravatar ChrisJL2021-05-14-2/+4
| |\ \
| | * | Modify env vars list for Lancebot and PythonGravatar dawnofmidnight2021-05-14-2/+4
| | |/
| * | Add good question guide redirectGravatar Joe Banks2021-05-14-0/+6
| | |
| * | Update redirect tests to use 301Gravatar Joe Banks2021-05-14-1/+1
| | |