Hmm, when I try this:
```
./manage.py generate_sphinx_template > sphinx-layout.html
```

I get this error:
```
Traceback (most recent call last):
  File "./manage.py", line 41, in <module>
    execute_from_command_line(sys.argv)
  File "/vagrant/vendor/src/django/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/vagrant/vendor/src/django/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/vagrant/vendor/src/django/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/vagrant/vendor/src/django/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/vagrant/apps/wiki/management/commands/generate_sphinx_template.py", line 46, in handle
    print content
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 10563: ordinal not in range(128)
```

You might want to try something here like:
```
print content.encode('utf8')
```