Fixed bugs 2 #15

Merged
jkuijperm merged 13 commits from dev into main 2026-07-24 09:38:43 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit e621a6f9f0 - Show all commits

View File

@ -2,6 +2,7 @@ pipeline{
agent any agent any
environment { environment {
DEBUG = 'TRUE'
DJANGO_SECRET_KEY = 'test-secret-key-for-ci' DJANGO_SECRET_KEY = 'test-secret-key-for-ci'
DJANGO_SETTINGS_MODULE = "expenses_manager.settings" DJANGO_SETTINGS_MODULE = "expenses_manager.settings"
PYTHONUNBUFFERED = "1" PYTHONUNBUFFERED = "1"
@ -33,7 +34,6 @@ pipeline{
cd expenses_manager cd expenses_manager
. venv/bin/activate . venv/bin/activate
export SECRET_KEY=$DJANGO_SECRET_KEY
venv/bin/pytest --cov venv/bin/pytest --cov
''' '''
} }

View File

@ -158,7 +158,8 @@ DATETIME_INPUT_FORMATS = ["%d/%m/%Y %H:%M"]
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'staticfiles' STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" if not DEBUG:
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field