collectstatic

This commit is contained in:
Irwan Cahyono 2025-06-30 15:44:37 +07:00
parent 973f1be58b
commit 2655518a86
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ services:
# command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000"
volumes:
- .:/app
- static_volume:/app/static
- static_volume:/app/staticfiles
expose:
- "8000"
networks:

View File

@ -138,6 +138,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field