From b8ece3d1d7c8aad58b186cbcbb431d9ea75724bf Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Mon, 8 Feb 2016 11:07:38 +0100 Subject: [PATCH] Add notes in production documentation about filenames The apache enviromental variable for the language needs to be explicitly set to UTF8, otherwise it is not possible to upload files with non-ASCII names in them, even if using python 3. https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/ Fixes #267 --- docs/production.rst | 8 ++++++++ wger/software/templates/changelog.html | 1 + 2 files changed, 9 insertions(+) diff --git a/docs/production.rst b/docs/production.rst index 3725cc5ad..b881d7529 100644 --- a/docs/production.rst +++ b/docs/production.rst @@ -47,6 +47,14 @@ Configure apache to serve the application:: CustomLog ${APACHE_LOG_DIR}/access.log combined +Apache has a problem when uploading files that have non-ASCII characters, e.g. +for exercise images. To avoid this, add to /etc/apache2/envvars (if there is +already an ``export LANG``, replace it):: + + export LANG='en_US.UTF-8' + export LC_ALL='en_US.UTF-8' + + Activate the settings and disable apache's default:: sudo a2dissite 000-default.conf diff --git a/wger/software/templates/changelog.html b/wger/software/templates/changelog.html index b4a8126ac..fb20cbed7 100644 --- a/wger/software/templates/changelog.html +++ b/wger/software/templates/changelog.html @@ -95,6 +95,7 @@
  • Other improvements and bugfixes + #267 #256 #242 #238