Another file upload test
continuous-integration/drone/push Build is failing Details

master
Joshua Rubingh 2 years ago
parent 5625d987ee
commit a5aea172d0

@ -101,8 +101,6 @@ steps:
- name: tests
image: registry.webhosting.rug.nl/${DRONE_REPO,,}:${DRONE_SOURCE_BRANCH/\//-}-${DRONE_COMMIT_SHA:0:8}
environment:
# We need an upload path for testing...
MEDIA_ROOT: mediafiles
# And a 'dummy' secret key for testing
SECRET_KEY: w@b=#(f4uc0l%e!5*eo+aoflnxb(@!l9!=c5w=4b+x$=!8&vy%a
commands:

@ -127,7 +127,7 @@ WSGI_APPLICATION = 'VRE.wsgi.application'
DATABASES = {
'default': config(
'DATABASE_URL',
default=f'sqlite:///{BASE_DIR / "db.sqlite3"}', # + os.path.join(BASE_DIR, 'db.sqlite3')
default=f'sqlite:///{BASE_DIR / "db.sqlite3"}',
cast=db_url
)
}
@ -174,9 +174,9 @@ STATICFILES_DIRS = [
BASE_DIR / 'static',
]
STATIC_ROOT = config('STATIC_ROOT', 'staticfiles')
STATIC_ROOT = config('STATIC_ROOT', f'{BASE_DIR / "staticfiles"}')
MEDIA_ROOT = config('MEDIA_ROOT', 'mediafiles')
MEDIA_ROOT = config('MEDIA_ROOT', f'{BASE_DIR / "mediafiles"}')
MEDIA_URL = '/media/'
INTERNAL_IPS = config('INTERNAL_IPS', default='127.0.0.1', cast=Csv())

Loading…
Cancel
Save