initial commit
This commit is contained in:
Binary file not shown.
@@ -95,13 +95,20 @@ STATIC_URL = "/static/"
|
|||||||
STATIC_ROOT = BASE_DIR / "staticfiles"
|
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(
|
cloudinary.config(
|
||||||
cloud_name = os.getenv("CLOUD_NAME"),
|
cloud_name=os.getenv("CLOUD_NAME"),
|
||||||
api_key = os.getenv("API_KEY"),
|
api_key=os.getenv("API_KEY"),
|
||||||
api_secret = os.getenv("API_SECRET")
|
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
|
# Auth redirects
|
||||||
LOGIN_REDIRECT_URL = 'citizen_dashboard'
|
LOGIN_REDIRECT_URL = 'citizen_dashboard'
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user