Switch to nginx + postgres in vagrant

This commit is contained in:
Martin Pépin 2017-08-09 22:07:49 +01:00
parent cb1d253517
commit ad15c45237
9 changed files with 107 additions and 105 deletions

View file

@ -136,7 +136,7 @@ TEMPLATES = [
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': DBNAME,
'USER': DBUSER,
'PASSWORD': DBPASSWD,

View file

@ -19,9 +19,9 @@ DEBUG = True
# ---
STATIC_URL = '/static/'
STATIC_ROOT = '/var/www/static/'
STATIC_ROOT = '/srv/gestiocof/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_ROOT = '/srv/gestiocof/media/'
MEDIA_URL = '/media/'