Settings
This section covers the newly added settings for the RDMC project configuration.
Custom Django Settings
1. MEDIA_ROOT
Description: Specifies the path where uploaded media files will be stored.
Default Value: Defined dynamically as the ‘upload’ directory inside the project’s base directory.
Example:
MEDIA_ROOT = os.path.join(BASE_DIR, 'upload')
2. MANIFEST_FILE_NAME
Description: Name of the manifest file used within the project.
Default Value: ‘manifest.rdmc’
Example:
MANIFEST_FILE_NAME = 'manifest.rdmc'
3. SCHEMA_FILE_NAME
Description: Name of the schema file used within the project.
Default Value: ‘schema.json’
Example:
SCHEMA_FILE_NAME = 'schema.json'
4. IS_DEMO
Description: A flag used to restrict certain functionalities when running the RDMC in demo mode.
Default Value: False unless the environment variable RDMC_RUN_AS_DEMO is set to true.
Example:
IS_DEMO = os.getenv('RDMC_RUN_AS_DEMO', 'false').lower() == 'true'
Security Considerations
When running in demo mode (IS_DEMO = True), some functionalities will be restricted to prevent misuse.