aboutsummaryrefslogtreecommitdiff
path: root/app/config-example.yml
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-11-06 16:05:53 -0500
committerMitch Riedstra <Mitch@riedstra.us>2017-11-06 16:05:53 -0500
commitf5c84efd37085695732803b28d4a74cc05042e0e (patch)
tree5799c7bb6db8797027a449aa9a6943752ccee2b3 /app/config-example.yml
parentecbc2c4751408c82c099dda0adf8b1c85b8ae3d9 (diff)
downloaddispatch-tracker-f5c84efd37085695732803b28d4a74cc05042e0e.tar.gz
dispatch-tracker-f5c84efd37085695732803b28d4a74cc05042e0e.tar.xz
Rename config to config-example and allow it to be loaded if config does not exist. Define email settings in config. Remove Django admin from the Admin's Nav.
Diffstat (limited to 'app/config-example.yml')
-rw-r--r--app/config-example.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/config-example.yml b/app/config-example.yml
new file mode 100644
index 0000000..7954e08
--- /dev/null
+++ b/app/config-example.yml
@@ -0,0 +1,47 @@
+---
+# Postgres Example
+# db_default:
+# ENGINE: django.db.backends.postgresql
+# NAME: dispatch
+# USER: postgres
+# PASSWORD:
+# HOST: 127.0.0.1
+# PORT: 5432
+# MySQL Example
+# db_default:
+# ENGINE: django.db.backends.mysql
+# NAME: dispatch_test
+# USER: dispatch
+# PASSWORD: ahB2lee5
+# HOST: 127.0.0.1
+# PORT: 3306
+# Sqlite example. Full path is recommended
+db_default:
+ ENGINE: django.db.backends.sqlite3
+ NAME: /home/mitch/scm/dispatch-tracker/app/db.sqlite3
+
+allowed_hosts:
+ - localhost
+ - 127.0.0.1
+
+static_root: '/full/path/to/static/root'
+
+debug: True
+
+# CHANGE THIS BEFORE USING IN PRODUCTION
+SECRET_KEY: 'h$r_bwlp@#h#y#%&qhw-n=gb2%wva1d_h65+o94u&!a#%iv&lo'
+
+# These people will be emailed if debug = false
+admins:
+ - 'bob@example.com'
+
+
+
+# Email settings won't be loaded from this file if this is false
+SET_EMAIL: False
+# Email settings, edit for your needs
+EMAIL_HOST: smtp.example.com
+EMAIL_HOST_PASSWORD: p@$$w0rd9876543210
+EMAIL_HOST_USER: django@example.com
+EMAIL_PORT: 2525
+EMAIL_USE_TLS: True