diff --git a/{{cookiecutter.repo_name}}/.gitignore b/{{cookiecutter.repo_name}}/.gitignore
index 4b45be78b..50ef6fb8d 100644
--- a/{{cookiecutter.repo_name}}/.gitignore
+++ b/{{cookiecutter.repo_name}}/.gitignore
@@ -41,6 +41,8 @@ nosetests.xml
# Pycharm
.idea/*
!.idea/{{cookiecutter.repo_name}}.iml
+!.idea/dataSources.xml
+!.idea/dataSources.local.xml
!.idea/deployment.xml
!.idea/modules.xml
!.idea/webResources.xml
diff --git a/{{cookiecutter.repo_name}}/.idea/dataSources.local.xml b/{{cookiecutter.repo_name}}/.idea/dataSources.local.xml
new file mode 100644
index 000000000..66988a50e
--- /dev/null
+++ b/{{cookiecutter.repo_name}}/.idea/dataSources.local.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ master_key
+ postgres
+ postgres.pg_catalog postgres.public
+ postgres.pg_catalog postgres.public
+
+
+
\ No newline at end of file
diff --git a/{{cookiecutter.repo_name}}/.idea/dataSources.xml b/{{cookiecutter.repo_name}}/.idea/dataSources.xml
new file mode 100644
index 000000000..a66c9b38d
--- /dev/null
+++ b/{{cookiecutter.repo_name}}/.idea/dataSources.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ postgresql
+ true
+ org.postgresql.Driver
+ jdbc:postgresql://localhost:25432/postgres
+
+
+
+
\ No newline at end of file
diff --git a/{{cookiecutter.repo_name}}/.idea/{{cookiecutter.repo_name}}.iml b/{{cookiecutter.repo_name}}/.idea/{{cookiecutter.repo_name}}.iml
index 803767dda..9842be015 100644
--- a/{{cookiecutter.repo_name}}/.idea/{{cookiecutter.repo_name}}.iml
+++ b/{{cookiecutter.repo_name}}/.idea/{{cookiecutter.repo_name}}.iml
@@ -11,7 +11,11 @@
-
+
+
+
+
+
diff --git a/{{cookiecutter.repo_name}}/debug.yml b/{{cookiecutter.repo_name}}/debug.yml
index 7809a5fbd..3f3122b0d 100644
--- a/{{cookiecutter.repo_name}}/debug.yml
+++ b/{{cookiecutter.repo_name}}/debug.yml
@@ -1,5 +1,7 @@
postgres:
image: postgres
+ ports:
+ - "25432:5432"
volumes:
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
# for more info see here: https://github.com/boot2docker/boot2docker/issues/581