Skip to content

Commit

Permalink
Fix build static directory not found
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvallejosdev committed Feb 13, 2024
1 parent ddb4440 commit 0937c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todo_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@

if not DEBUG: # Tell Django to copy statics to the `staticfiles` directory
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles_build", "static")
MEDIA_ROOT = os.path.join(BASE_DIR, "staticfiles/images")
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
MEDIA_ROOT = os.path.join(BASE_DIR, "staticfiles_build", "images")
# STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"

# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
Expand Down

0 comments on commit 0937c4d

Please sign in to comment.