mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-02-21 18:12:00 +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
|
||||
|
||||
# Environments
|
||||
.env.example
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
|
@ -259,15 +259,10 @@ DJANGORESIZED_DEFAULT_FORMAT_EXTENSIONS = {"JPEG": ".jpg"}
|
||||
DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True
|
||||
|
||||
|
||||
AWS_ACCESS_KEY_ID = config("AWS_ACCESS_KEY_ID")
|
||||
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"
|
||||
DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"
|
||||
STORAGES = {
|
||||
"default": {
|
||||
"BACKEND": "storages.backends.s3.S3Storage",
|
||||
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
||||
|
Loading…
x
Reference in New Issue
Block a user