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
This commit is contained in:
Roland Geider
2016-02-08 11:07:38 +01:00
parent e2f5808537
commit b8ece3d1d7
2 changed files with 9 additions and 0 deletions

View File

@@ -47,6 +47,14 @@ Configure apache to serve the application::
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
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

View File

@@ -95,6 +95,7 @@
</li>
<li>
Other improvements and bugfixes
<a href="https://github.com/rolandgeider/wger/issues/267">#267</a>
<a href="https://github.com/rolandgeider/wger/issues/256">#256</a>
<a href="https://github.com/rolandgeider/wger/issues/242">#242</a>
<a href="https://github.com/rolandgeider/wger/issues/238">#238</a>