Skip to content

Instantly share code, notes, and snippets.

@andergmartins
Created October 4, 2012 15:03
Show Gist options
  • Save andergmartins/3834177 to your computer and use it in GitHub Desktop.
Save andergmartins/3834177 to your computer and use it in GitHub Desktop.
Django - Fix locale.getdefaultlocale() for OS X 10.8
# Fix locale.getdefaultlocale() on OS X 10.8 - Mountain Lion
os.environ['LANG'] = 'en_US.UTF-8'
@andergmartins
Copy link
Author

Use that inside your settings.py, like that:

# Django settings for a generic project.
import os

# Fix locale.getdefaultlocale() on OS X 10.8 - Mountain Lion
os.environ['LANG'] = 'en_US.UTF-8'

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment