Skip to content

Commit

Permalink
Change STATIC_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Nov 7, 2024
1 parent 0e2e3f9 commit e976812
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rnacentral/rnacentral/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,12 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = os.path.join(os.path.dirname(PROJECT_PATH), "static")
STATIC_ROOT = "/srv/rnacentral/static"

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
STATIC_URL = "/static/"

# WhiteNoise - compression and caching support
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
Expand All @@ -117,8 +114,6 @@
)

MIDDLEWARE = (
# WhiteNoise - serve static files
"whitenoise.middleware.WhiteNoiseMiddleware",
# gzip
"django.middleware.gzip.GZipMiddleware",
# default
Expand Down

0 comments on commit e976812

Please sign in to comment.