-
Notifications
You must be signed in to change notification settings - Fork 147
Settings
Lou Wolford edited this page Mar 1, 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_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: <email_host>
EMAIL_PORT: 465
EMAIL_HOST_USER: <email_host_user>
EMAIL_HOST_PASSWORD: <email_host_user_password>
EMAIL_USE_SSL: True
[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>
[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>
HOST: localhost
PORT: 5672
VHOST: <vhost_name>
NOTE: You can set the email values if you wish. These are just for if any users forget their passwords. You don't not have to enable this.