Changes between Version 12 and Version 13 of django_apache_and_mod_wsgi


Ignore:
Timestamp:
02/02/2009 08:02:28 AM (6 years ago)
Author:
aarond10ster
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • django_apache_and_mod_wsgi

    v12 v13  
    155155Restart apache and now you should be able to enjoy your application served by Apache and mod_wsgi.
    156156
     157=== Additional Tweaking ===
     158If you're taking advantage of the great Internationalization features of Django you may come across a curious problem. Namely, uploading of non-ascii filenames with the Django storage system with the default apache settings on most systems will trigger UnicodeEncodeError exceptions when calling functions like os.path(). To avoid these issues, ensure that the following lines are included in your apache envvars file (typically found in /etc/apache2/envvars).
     159
     160{{{
     161export LANG='en_US.UTF-8'
     162export LC_ALL='en_US.UTF-8'
     163}}}
     164
     165This error likely wont rear its head during development on the test server as, when run from the command line, the ./manage.py script inherits the users language and locale settings.
     166
    157167== References ==
    158168
Back to Top