mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-31 10:19:54 +03:00
fix in settings, proper ownership for pycharm_helpers
This commit is contained in:
parent
9caa719082
commit
b649993fa7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user