Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions namespaces/default/site/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Python Discord Site
This folder contains the manifests for Python Discord site.

## Serving static files

Usually, a web server like `nginx` should be deployed and configured to serve static files needed by Django. Then we'd put an `Ingress`
rule to route traffic to the `STATIC_URL` to that webserver.
Check the [official docs](https://docs.djangoproject.com/en/4.2/howto/static-files/deployment/) for more info.

In this setup, we do it differently thanks to [WhiteNoise](https://whitenoise.readthedocs.io/en/stable/base.html#), which sets up
a middleware that handles the caching, compression and serving of the static files for us.

## Secrets

The deployment expects the following secrets to be available in `site-env`:
Expand Down