goes inside crm.settings.py
STATIC_DIRstatic files directorySTATIC_URL_PATHstatic files URL prefixIMAGES_DIRwhere images uploads goesLOGGING_CONFlogging configurationATTACHMENTS_DIRAttachments directory for the Mailin Feature
goes inside crm.settings_dev.py
DEBUG = TrueEnable debuggingTesting = TrueEnable testing mode- SQLALCHEMY debugging options
SQLALCHEMY_TRACK_MODIFICATIONS = TrueSQLALCHEMY_ECHO = TrueSQLALCHEMY_RECORD_QUERIES = True
goes inside crm.settings_prod.py
DEBUG = FALSEDisable debugging- SQLALCHEMY debugging options
SQLALCHEMY_TRACK_MODIFICATIONS = FalseSQLALCHEMY_ECHO=False&SQLALCHEMY_RECORD_QUERIES=Falseno need to add them they're set toFalseby default
-
export CACHE_BACKEND_URI=redis://{ip}:{port}/{db_number}to set a redis cache backendIn production mode, must be set explicitly to a redis URL.
In development mode, Not required to set, but the default Cache will be memory
In development mode command
flask dumpcachewon't work if Cache backend is memoryMemory cache in a CRM app process can't be accessed by another process like
flask dumpcacheso if you want to useflask dumpcacheyou have to use shared cache like redis -
export SQLALCHEMY_DATABASE_URI=postgresql://{user}:{pass}@{ip}:{port}/{db_name}Use Postgresql dbIn production mode, must be set explicitly to an RDBMS like Postgres
In development mode Not required but default is to use a Sqlite db called
db.devin root dir -
export EXCLUDED_MIDDLEWARES=iyo,mw2,mw3Quickly disable a comma separated list of middlewaresIn development mode only if you want to disable some modules during development like IYO authentication middleware You just have to provide comma separated list of middleware module names
-
export DATA_DIR={path}change the path whereflask dumpdataexports DB data to andflask loaddataload data into DB fromIn production mode is set by default to
/opt/code/github/incubaid/data_crmIn development mode is set by default to
datadir under the root directory -
export
SENDGRID_API_KEYfor Mail In/Out.