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:
i701 2025-02-08 16:15:49 +05:00
parent c1fc07e3e2
commit eb600b7a0c
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587
2 changed files with 3 additions and 7 deletions

1
.gitignore vendored
View File

@ -120,6 +120,7 @@ celerybeat.pid
*.sage.py *.sage.py
# Environments # Environments
.env.example
.env .env
.venv .venv
env/ env/

View File

@ -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",