mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-22 16:32:01 +00:00
Update storage configuration and .gitignore
- Switch from AWS S3 to local file storage - Add .env.example to .gitignore - Remove AWS-related configuration in settings.py
This commit is contained in:
parent
c1fc07e3e2
commit
eb600b7a0c
1
.gitignore
vendored
1
.gitignore
vendored
@ -120,6 +120,7 @@ celerybeat.pid
|
|||||||
*.sage.py
|
*.sage.py
|
||||||
|
|
||||||
# Environments
|
# Environments
|
||||||
|
.env.example
|
||||||
.env
|
.env
|
||||||
.venv
|
.venv
|
||||||
env/
|
env/
|
||||||
|
@ -259,15 +259,10 @@ DJANGORESIZED_DEFAULT_FORMAT_EXTENSIONS = {"JPEG": ".jpg"}
|
|||||||
DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True
|
DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True
|
||||||
|
|
||||||
|
|
||||||
AWS_ACCESS_KEY_ID = config("AWS_ACCESS_KEY_ID")
|
DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"
|
||||||
AWS_SECRET_ACCESS_KEY = config("AWS_ACCESS_SECRET")
|
|
||||||
AWS_STORAGE_BUCKET_NAME = config("AWS_BUCKET")
|
|
||||||
AWS_S3_FILE_OVERWRITE = False
|
|
||||||
AWS_DEFAULT_ACL = None
|
|
||||||
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"
|
|
||||||
STORAGES = {
|
STORAGES = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "storages.backends.s3.S3Storage",
|
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||||
},
|
},
|
||||||
"staticfiles": {
|
"staticfiles": {
|
||||||
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user