fix in settings, proper ownership for pycharm_helpers

This commit is contained in:
Krzysztof Szumny 2015-08-18 13:26:44 +02:00
parent 9caa719082
commit b649993fa7
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ chown $user:$user /home/$user
chmod 755 /home/$user
ln -s /pycharm_helpers/ /home/$user/.pycharm_helpers
chown $user:$user /pycharm_helpers/ /home/$user/.pycharm_helpers
# TODO: get public key authorization to work
mkdir /home/$user/.ssh

View File

@ -100,9 +100,9 @@ MANAGERS = ADMINS
DATABASES = {
# Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
{% if cookiecutter.use_docker == 'y' %}
'default': 'postgres://postgres@postgres/postgres'),
'default': env.db('DATABASE_URL', default='postgres://postgres@postgres/postgres'),
{% else %}
'default': env.db("DATABASE_URL", default="postgres://{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.repo_name}}"),
'default': env.db('DATABASE_URL', default='postgres://{% if cookiecutter.windows == "y" %}localhost{% endif %}/{{cookiecutter.repo_name}}'),
{% endif %}
}
DATABASES['default']['ATOMIC_REQUESTS'] = True