Fixed provision/settings for postgres
This commit is contained in:
parent
6e94220d95
commit
2b869100e4
|
@ -100,3 +100,5 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/1.8/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
postgresql_user: djangoapp
|
||||
postgresql_database_name: djangoapp
|
||||
postgresql_database_name: amiibofindr
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# Base Django
|
||||
Django==1.8.2
|
||||
psycopg2==2.6.1
|
||||
|
||||
# Tasks
|
||||
celery==3.1.18
|
||||
|
|
Loading…
Reference in New Issue