Skip to content

Commit

Permalink
Silence staticfiles warning (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
dekkers authored Nov 6, 2024
1 parent 5439599 commit bbd1b72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rocky/rocky/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,3 +495,10 @@ def immutable_file_test(path, url):
POLL_INTERVAL = env.int("POLL_INTERVAL", default=10)
# Seconds to wait before checking the workers when queues are full
WORKER_HEARTBEAT = env.int("WORKER_HEARTBEAT", default=5)

# In production deployments the staticfiles are coming from the collected static
# files in the static directory. We should not ship all those files also in
# their original location, but Django will complain if a directory in
# STATICFILES_DIRS does not exist. We silence the warning here to prevent the
# warning from confusing users.
SILENCED_SYSTEM_CHECKS = ["staticfiles.W004"]

0 comments on commit bbd1b72

Please sign in to comment.