lokesh1729 / cookiecutter-drf-react-redux

Django Cookiecutter with DRF, React & Redux boilerplate
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

dict object' has no attribute 'use_mailhog' error #1

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi,

Hope you are all well !

I tried your template and it gives me the following error:

x0rzkov % cookiecutter https://github.com/lokesh1729/cookiecutter-drf-react-redux
You've downloaded /Users/x0rzkov/.cookiecutters/cookiecutter-drf-react-redux before. Is it okay to delete and re-download it? [yes]: 
project_name [My Awesome Project]: 
project_slug [my_awesome_project]: 
description [Behold My Awesome Project!]: 
author_name [Daniel Roy Greenfeld]: 
domain_name [example.com]: 
email [daniel-roy-greenfeld@example.com]: 
version [0.1.0]: 
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]: 
timezone [UTC]: 
windows [n]: 
use_pycharm [n]: y
use_docker [n]: y
Select postgresql_version:
1 - 11.3
2 - 10.8
3 - 9.6
4 - 9.5
5 - 9.4
Choose from 1, 2, 3, 4, 5 [1]: 
Select js_task_runner:
1 - CreateReactApp
Choose from 1 [1]: 
Select cloud_provider:
1 - AWS
2 - GCP
3 - None
Choose from 1, 2, 3 [1]: 3
use_celery [n]: y
use_sentry [n]: y
use_whitenoise [n]: y
use_heroku [n]: 
use_travisci [n]: y
keep_local_envs_in_vcs [y]: n
debug [n]: y
Unable to create file 'local.yml'
Error message: 'dict object' has no attribute 'use_mailhog'
Context: {
    "cookiecutter": {
        "_template": "https://github.com/lokesh1729/cookiecutter-drf-react-redux",
        "author_name": "Daniel Roy Greenfeld",
        "cloud_provider": "None",
        "debug": "y",
        "description": "Behold My Awesome Project!",
        "domain_name": "example.com",
        "email": "daniel-roy-greenfeld@example.com",
        "js_task_runner": "CreateReactApp",
        "keep_local_envs_in_vcs": "n",
        "open_source_license": "MIT",
        "postgresql_version": "11.3",
        "project_name": "My Awesome Project",
        "project_slug": "my_awesome_project",
        "timezone": "UTC",
        "use_celery": "y",
        "use_docker": "y",
        "use_heroku": "n",
        "use_pycharm": "y",
        "use_sentry": "y",
        "use_travisci": "y",
        "use_whitenoise": "y",
        "version": "0.1.0",
        "windows": "n"
    }
}

Any idea how to fix it ?

Cheers, X

lokesh1729 commented 4 years ago

hey @x0rzkov ,

i'll check and update... thanks for trying this....