Skip to content

Commit

Permalink
upd base
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaakgul committed Dec 17, 2023
1 parent bc3c7a9 commit ca45581
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
'whitenoise.middleware.WhiteNoiseMiddleware',
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
Expand Down Expand Up @@ -186,6 +187,10 @@
}


# Whitenoise Settings
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'


# CORS Settings
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOWED_ORIGINS = [
Expand Down
1 change: 1 addition & 0 deletions requirements-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ typing_extensions==4.8.0
uritemplate==4.1.1
urllib3==2.0.4
zipp==3.17.0
whitenoise==6.6.0
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ typing_extensions==4.8.0
uritemplate==4.1.1
urllib3==2.0.4
zipp==3.17.0
whitenoise==6.6.0

0 comments on commit ca45581

Please sign in to comment.