edit dockerfile and settings.py for static files

This commit is contained in:
javad committed 2026-06-22 13:12:05 +03:30
1 parent 2228279696
commit 2481bb6967
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update && apt-get install -y --no-install-recommends \ apt-get update && apt-get install -y --no-install-recommends \
libpq5 \ libpq5 \
supervisor && \ supervisor && \
mkdir -p /app/staticfiles /app/mediafiles /etc/supervisor /var/log/supervisor && \ mkdir -p /app/staticfiles /app/static /app/mediafiles /etc/supervisor /var/log/supervisor && \
chown -R django:django /app /etc/supervisor /var/log/supervisor chown -R django:django /app /etc/supervisor /var/log/supervisor
# کپی کردن و واگذاری مالکیت محیط مجازی به کاربر django # کپی کردن و واگذاری مالکیت محیط مجازی به کاربر django
+1 -1
View File
@@ -120,7 +120,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = "/usr/src/app/static" STATIC_ROOT = "/app/static"
STATICFILES_DIRS = [ STATICFILES_DIRS = [
BASE_DIR / "static", BASE_DIR / "static",