diff --git a/Changelog.md b/Changelog.md index da84e0e70f252621c8942b68df01f7b415024e90..61d65ecde93212a164ac250e4caae1ce18ef02ba 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,4 +1,7 @@ # Changelog +## [0.2] - 2025-01-09 +- Updated the setting related to the MEDIA ROOT and URL and also the CSRF settings + ## [0.1] - 2025-01-08 - initial release diff --git a/sage_validation/settings.py b/sage_validation/settings.py index 23ffe66181ad8aa96207ee63fae11c750f28b6a3..5bf2163c0aa92aedb85e121d78796016554b88d2 100644 --- a/sage_validation/settings.py +++ b/sage_validation/settings.py @@ -127,3 +127,8 @@ STATIC_ROOT = os.getenv("STATIC_ROOT", BASE_DIR / "staticfiles") STATICFILES_DIRS = [ BASE_DIR / "static", ] + +MEDIA_ROOT = os.getenv("MEDIA_ROOT", BASE_DIR / "media") +MEDIA_URL = '/media/' + +CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "").split(",") diff --git a/setup.py b/setup.py index c5c47a847e2e9589efadb39d90ab1df6ba40f363..5ce53c3ad5d888edad992252a14d5d7b0343fa81 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup setup( name="sage-validation", - version="0.1", + version="0.2", packages=find_packages(), include_package_data=True, install_requires=[