Vm Django

Agrega configuracion

... ... @@ -29,6 +29,9 @@ DEBUG = env.bool('DJANGO_DEBUG', False)
SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!') # noqa
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default='*') # noqa
FORCE_SCRIPT_NAME = env.str('DJANGO_FORCE_SCRIPT_NAME', default=None)
USE_X_FORWARDED_HOST = env.bool('DJANGO_USE_X_FORWARDED_HOST', default=False)
DATABASES = {
'default': env.db('DATABASE_URL')
}
... ... @@ -94,10 +97,11 @@ LANGUAGES = [
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_ROOT = str(PROJECT_DIR.path('static'))
STATIC_URL = '/static/'
STATIC_URL = env.str('DJANGO_STATIC_URL', default='/static/')
STATICFILES_DIRS = [str(PROJECT_DIR.path('assets')), ]
MEDIA_ROOT = str(PROJECT_DIR.path('media'))
MEDIA_URL = env.str('MEDIA_URL', default='/media/')
MEDIA_URL = env.str('DJANGO_MEDIA_URL', default='/media/')
CORS_ORIGIN_ALLOW_ALL = True
... ...