New website suggestion. Testing only.
Find a file
Rodolphe Breard e0d26e8a7a Add separators within the navbar
Implement #2
2018-01-29 22:34:05 +01:00
khaganat Add the language to the admin tool 2018-01-28 15:47:39 +01:00
logs Improve the log style 2018-01-28 14:27:02 +01:00
navbar Add separators within the navbar 2018-01-29 22:34:05 +01:00
neluser Enforce some pep8 code style 2018-01-27 23:12:09 +01:00
pages Enforce some pep8 code style 2018-01-27 23:12:09 +01:00
.gitignore Add .sql files to the ignore list 2018-01-27 21:16:37 +01:00
LICENSE.txt Add the AGPL license 2018-01-26 21:49:00 +01:00
manage.py first commit 2018-01-13 12:29:33 +01:00
Pipfile first commit 2018-01-13 12:29:33 +01:00
Pipfile.lock first commit 2018-01-13 12:29:33 +01:00
README.md Add the superuser creation to the quick deployment guide 2018-01-27 21:38:38 +01:00

Khaganat's web site

Requirements

  • Python 3
  • pipenv
  • git
  • gettext

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
pipenv run ./manage.py compilemessages
pipenv run ./manage.py createsuperuser

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.
  • KHAGANAT_LOGS_MIN_DAYS: Numbers of days before logs are hidden, default is 7.
  • KHAGANAT_LOGS_MAX_DAYS: Number of days before logs are published, default is 0.