From fce04daaaaf232b9dfa9174d88291d1e21e24ba9 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Fri, 26 Jan 2018 21:28:45 +0100 Subject: [PATCH] Add the README --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ab37aa --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Khaganat's web site + +## Requirements + +* Python 3 +* pipenv +* git + + +## Quick deployment + +``` +git clone https://git.khaganat.net/Tycho/khaganat-web.git khaganat-web +cd khaganat-web +vim .env +pipenv --python 3 --update +pipenv run ./manage.py migrate +pipenv run ./manage.py collectstatic +``` + + +## Environment variables + +You can set the following variables in the `.env` file: + +* `KHAGANAT_SECRET_KEY` (required): Django's secret key, keep it secret. +* `KHAGANAT_DEBUG`: Debug mode, default is false. +* `KHAGANAT_HOSTNAMES`: Allowed hostnames, coma separated. +* `KHAGANAT_LANGUAGE_CODE`: Language code, default is `fr`. +* `KHAGANAT_TIME_ZONE`: Time zone, default is `Europe/Paris`. +* `KHAGANAT_STATIC_URL`: URL for static files, default is `/static/`. +* `KHAGANAT_STATIC_ROOT`: Absolute path to the directory where static files should be collected.