Skip to content

Instantly share code, notes, and snippets.

@zhenyi2697
Last active August 29, 2015 14:11
Show Gist options
  • Save zhenyi2697/6bbb87e50021fca13a27 to your computer and use it in GitHub Desktop.
Save zhenyi2697/6bbb87e50021fca13a27 to your computer and use it in GitHub Desktop.
Django i18n cheat sheet

1. Create Message file

Run the following command from

  • The root directory of Django project

  • The root directory of Django app

    $ django-admin.py makemessages
    or
    $ django-admin.py makemessages -l fr # to update message file

2. Compile Message files

$ django-admin.py compilemessages

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