Browse Source

Another file upload test

master
Joshua Rubingh 12 months ago
parent
commit
a5aea172d0
  1. 2
      .drone.yml
  2. 6
      VRE/VRE/settings.py

2
.drone.yml

@ -101,8 +101,6 @@ steps: @@ -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:

6
VRE/VRE/settings.py

@ -127,7 +127,7 @@ WSGI_APPLICATION = 'VRE.wsgi.application' @@ -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 = [ @@ -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