Django Settings¶
Global Defaults¶
These settings control the overall behavior of Gandom code, and includes settings like API results page size, maximum export row size, etc.
DEFAULT_CURRENCY¶
System assumes a base currency that all calculations are reported in it. All monetary values that are shown without a unit are assumed to be in this currency. Set it to the default reporting and operating currency of your country.
Default: 1 (Iranian Rial - IRR - ﷼)
DEFAULT_PAGE_SIZE¶
Default number of rows that should be shown in each page of reports and other lists.
Default: 100
MAX_EXPORT_SIZE¶
Maximum number of records for exported files and reports. This settings is used to prevent producing files that too large to process easily in client software. Also it may function as a way to prevent downloading all of the system data easily from the UI. API can be used to access the full data.
Default: 100_000
MAX_HTML_VIEW_SIZE¶
Maximum number of records that should be shown in a single page to the user in browser. Some lists and tables may be very large in accounting systems, and showing all of those records in a single HTML page causes large download latencies and browser slowdowns. So even if the user has requested to see all records for a report, at most this number of records will be shown in browser. The user can still access the full data (with higher limits) by exporting it as a file, or using the API.
Default: 2_000