initial commit

This commit is contained in:
2025-08-28 14:52:13 +05:30
parent c67538d474
commit 143dd17e6b
2 changed files with 7 additions and 8 deletions
+7 -8
View File
@@ -24,17 +24,19 @@ INSTALLED_APPS = [
'django.contrib.humanize',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# Third-party
'cloudinary',
'cloudinary_storage',
'django.contrib.staticfiles',
'whitenoise.runserver_nostatic',
# Local apps
'core.apps.CoreConfig',
]
CLOUDINARY_STORAGE = {
'CLOUD_NAME': os.getenv('CLOUD_NAME'),
'API_KEY': os.getenv('API_KEY'),
'API_SECRET': os.getenv('API_SECRET'),
}
AUTH_USER_MODEL = 'core.User'
MIDDLEWARE = [
@@ -95,9 +97,6 @@ STATIC_URL = "/static/"
STATIC_ROOT = BASE_DIR / "staticfiles"
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"),