Fixed provision/settings for postgres

This commit is contained in:
Felipe Martín 2015-06-16 00:04:34 +02:00
parent 6e94220d95
commit 2b869100e4
5 changed files with 18 additions and 2 deletions

View File

@ -100,3 +100,5 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.8/howto/static-files/
STATIC_URL = '/static/'
MEDIA_URL = '/media/'

View File

@ -1,5 +1,9 @@
# coding: utf-8
#
# Development settings prepared for vagrant
#
from .base import *
@ -8,7 +12,15 @@ DATABASES = {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'amiibofindr',
'USER': 'vagrant',
'PASS': 'vagrant',
'PASSWORD': 'vagrant',
'HOST': '127.0.0.1',
}
}
# Media root
MEDIA_ROOT = '/vagrant/media'
try:
from local_settings import *
except ImportError:
pass

View File

@ -5,3 +5,4 @@
- include: deploy.yml
- name: Ensure directory is changed on login
lineinfile: dest=~/.bash_profile state=present line='cd /vagrant'
lineinfile: dest=~/.bash_profile state=present line='export DJANGO_SETTINGS_MODULE="amiibofindr.settings.devel"'

View File

@ -1,2 +1,2 @@
postgresql_user: djangoapp
postgresql_database_name: djangoapp
postgresql_database_name: amiibofindr

View File

@ -1,5 +1,6 @@
# Base Django
Django==1.8.2
psycopg2==2.6.1
# Tasks
celery==3.1.18