2016-04-20 21:41:17 +03:00
|
|
|
project_slug = '{{ cookiecutter.project_slug }}'
|
2016-03-06 13:05:24 +03:00
|
|
|
|
2016-04-20 21:41:17 +03:00
|
|
|
if hasattr(project_slug, 'isidentifier'):
|
|
|
|
assert project_slug.isidentifier(), 'Project slug should be valid Python identifier!'
|
2016-04-26 00:09:37 +03:00
|
|
|
|
2016-09-26 19:19:15 +03:00
|
|
|
elasticbeanstalk = '{{ cookiecutter.use_elasticbeanstalk_experimental }}'.lower()
|
|
|
|
heroku = '{{ cookiecutter.use_heroku }}'.lower()
|
|
|
|
docker = '{{ cookiecutter.use_docker }}'.lower()
|
2016-06-04 02:35:10 +03:00
|
|
|
|
2016-09-26 19:19:15 +03:00
|
|
|
if elasticbeanstalk == 'y' and (heroku == 'y' or docker == 'y'):
|
|
|
|
raise Exception("Cookiecutter Django's EXPERIMENTAL Elastic Beanstalk support is incompatible with Heroku and Docker setups.")
|