Environment variables¶
We try to follow 12 factors app and so use environment variables for configuration.
Here is a list of the ones that are needed or optional:
DJANGO_SETTINGS_MODULE¶
- Description
- Define the settings file to use
- Type
- String
- Mandatory
- Yes
- Default
- None
- Choices
- Must be set to
marsha.settings
DJANGO_CONFIGURATION¶
- Description
- Define the configuration to use in settings
- Type
- String
- Mandatory
- Yes
- Default
- None
- Choices
- Actually only
Dev
is available
DJANGO_SECRET_KEY¶
- Description
- Used to provide cryptographic signing, and should be set to a unique, unpredictable value
- Type
- String
- Mandatory
- Yes
- Default
- None
DJANGO_DEBUG¶
- Description
- Turns on/off debug mode
- Type
- Boolean
- Mandatory
- No
- Default
True
ifDJANGO_CONFIGURATION
is set toDev
,False
otherwise- Choices
True
orFalse
DATABASE_URL¶
- Description
- URL to represent the connection string to a database
- Type
- String
- Mandatory
- No if
DJANGO_CONFIGURATION
is set toDev
, yes otherwise - Default
sqlite:///path/to/project/db.sqlite3
ifDJANGO_CONFIGURATION
is set toDev
, None otherwise- Choices
- See schemas as presented by dj-database-url