initial commit

This commit is contained in:
2025-08-28 12:40:12 +05:30
parent 716461af49
commit c67538d474
4 changed files with 12 additions and 5 deletions
+12 -5
View File
@@ -93,15 +93,22 @@ USE_TZ = True
# Static & Media files
STATIC_URL = "/static/"
STATIC_ROOT = BASE_DIR / "staticfiles"
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
# Media (Cloudinary + fallback local)
MEDIA_URL = "/media/"
MEDIA_ROOT = BASE_DIR / "media" # Used locally if Cloudinary creds not set
cloudinary.config(
cloud_name = os.getenv("CLOUD_NAME"),
api_key = os.getenv("API_KEY"),
api_secret = os.getenv("API_SECRET")
cloud_name=os.getenv("CLOUD_NAME"),
api_key=os.getenv("API_KEY"),
api_secret=os.getenv("API_SECRET"),
secure=True
)
DEFAULT_FILE_STORAGE = 'cloudinary_storage.storage.MediaCloudinaryStorage'
# Default storage (Cloudinary)
DEFAULT_FILE_STORAGE = "cloudinary_storage.storage.MediaCloudinaryStorage"
# Auth redirects
LOGIN_REDIRECT_URL = 'citizen_dashboard'
Binary file not shown.
Binary file not shown.