--- a/hooks/post_gen_project.py Wed Jun 07 15:44:02 2017 +0200
+++ b/hooks/post_gen_project.py Wed Jun 07 16:13:52 2017 +0200
@@ -92,6 +92,8 @@
'-d', '@' + os.path.join(json_dir, 'index-settings.json')])
except:
print("ERROR: Can't initialize ElasticSearch index. Please install CURL and read documentation!")
+else:
+ print("WARNING: You must install CURL to be able to initialize ElasticSearch index!")
{%- endif %}
{%- if cookiecutter.define_elasticsearch_mappings %}
@@ -106,6 +108,8 @@
'-d', '@' + os.path.join(mappings_dir, filename)])
except:
print("ERROR: Can't define ElasticSearch mappings. Please install CURL and read documentation!")
+else:
+ print("WARNING: You must install CURL to be able to define ElasticSearch mappings!")
{%- endif %}
{%- endif %}
@@ -115,4 +119,7 @@
print("To finalize it's creation, just type:")
print("- cd {{ cookiecutter.project_slug }}")
print("- python3.5 bootstrap.py")
+{%- if cookiecutter.use_oracle %}
+print("- export ORACLE_HOME=/path/to/your/oracle/client")
+{%- endif %}
print("- ./bin/buildout")