Skip to content
Lou Wolford edited this page Feb 28, 2017 · 10 revisions

The settings.ini file holds all of your sensitive/specific settings out of your settings.py file. This way you don't have to mess with them with any source control and keeps them a tiny bit safer. Like the readme file stated, created a settings.ini file in the adl_lrs directory, then add these values:

[database]
NAME: lrs
USER: <db_owner_name>
PASSWORD: <db_owner_password>
HOST: localhost
PORT: 5432


[email]
EMAIL_HOST: <email_host>
EMAIL_PORT: 465
EMAIL_HOST_USER: <email_host_user>
EMAIL_HOST_PASSWORD: <email_host_user_password>
EMAIL_USE_SSL: True
EMAIL_TIMEOUT: 10


[debug]
DEBUG: True


[auth]
ALLOW_EMPTY_HTTP_AUTH: False
OAUTH_ENABLED: True


[hooks]
USE_HOOKS: False


[preferences]
SERVER_STMT_LIMIT: 100
STMTS_PER_PAGE: 10
TIME_ZONE: America/New_York
LANGUAGE_CODE: en-US


[secrets]
SECRET_KEY: v+m%^r0x)$_x8i3trn*duc6vd-yju0kx2b#9lk0sn2k^7cgyp5


[ampq]
USERNAME: lrs
PASSWORD: password
VHOST: lrs_vhost

The only values you HAVE TO SET during installation are:

[database]
USER: <db_owner_name> # Set user name and password for the database that was created earlier in the readme
PASSWORD: <db_owner_password>

[email] # Set these values to send reset password emails to your users if you wish
SEND_EMAIL: False
EMAIL_HOST: <email_host>
EMAIL_PORT: 465
EMAIL_HOST_USER: <email_host_user>
EMAIL_HOST_PASSWORD: <email_host_user_password>
EMAIL_USE_SSL: True
EMAIL_TIMEOUT: 10

[secrets]
SECRET_KEY: v+m%^r0x)$_x8i3trn*duc6vd-yju0kx2b#9lk0sn2k^7cgyp5 # Make this unique and don't share it with anybody

[ampq] # Set these later during the installation process when setting up RabbitMQ and Celery
USERNAME: <username_for_rabbitmq>
PASSWORD: <password_for_rabbitmq>
VHOST: <vhost_name>
Clone this wiki locally