Repository: cookiecutter/cookiecutter-django

Issue:
Escape single quotes in author_name and description fields
There seems to be an issue with cookiecutter-django when you try and use single quotes (apostrophes) in the description or author name fields.

I saw that https://github.com/pydanny/cookiecutter-django/issues/251 was closed saying it was an issue with cookiecutter and not the template. I opened https://github.com/audreyr/cookiecutter/issues/775 on the cookiecutter repo, but found that cookiecutter can handle single quotes (see closing comment). I think the issue resides in the post_gen hook and I will try to put together a PR to fix this.

Below is an example of using an apostrophe in the author_name field, the error for an apostrophe in the description field is similar. (Those were the only two fields I could think of where it made since to use an apostrophe)  

```
macbook:Code dan$ cookiecutter https://github.com/pydanny/cookiecutter-django
You've cloned /Users/dan/.cookiecutters/cookiecutter-django before. Is it okay to delete and re-clone it? [yes]: yes
Cloning into 'cookiecutter-django'...
remote: Counting objects: 7188, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 7188 (delta 15), reused 0 (delta 0), pack-reused 7160
Receiving objects: 100% (7188/7188), 2.73 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (4634/4634), done.
Checking connectivity... done.
project_name [project_name]: project_name
project_slug [project_name]: project_name
author_name [Your Name]: Dan O'Name
email [Your email]: email@example.com
description [A short description of the project.]: Short Description 
domain_name [example.com]: example.com
version [0.1.0]: 0.0.1
timezone [UTC]: America/Chicago
use_whitenoise [y]: n
use_celery [n]: n
use_mailhog [n]: n
use_sentry_for_error_reporting [y]: n
use_opbeat [n]: n
use_pycharm [n]: n
windows [n]: n
use_python2 [n]: n
use_docker [y]: n
use_heroku [n]: n
use_compressor [n]: n
Select js_task_runner:
1 - Gulp
2 - Grunt
3 - Webpack
4 - None
Choose from 1, 2, 3, 4 [1]: 4
use_lets_encrypt [n]: n
Select open_source_license:
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from 1, 2, 3, 4, 5 [1]: 1
  File "/var/folders/18/d87m4tk90s9f3swwvczzt0kr0000gn/T/tmp1g00hsy8.py", line 180
    'author_name': 'Dan O'Name',
                             ^
SyntaxError: invalid syntax
ERROR: Stopping generation because post_gen_project hook script didn't exit sucessfully
Hook script failed (exit status: 1)
```



Discussion:

Resolving patch:
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -177,8 +177,8 @@ def add_webpack():
             'project_dir': '{{ cookiecutter.project_slug }}',
             'static_root': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}',
             'production_output_path': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}/dist/',
-            'author_name': '{{ cookiecutter.author_name }}',
-            'description': '{{ cookiecutter.description }}',
+            'author_name': '{{ cookiecutter.author_name | escape }}',
+            'description': '{{ cookiecutter.description | escape }}',
             'version': '{{ cookiecutter.version }}',
             'existing_project': 'y',
             'css_extension': 'sass',


Test patch: