From 439122d18408f1cdf3adc13ffb4596546260d75e Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Mon, 20 Jan 2020 19:16:25 +0100
Subject: [PATCH] Added sample config.

---
 pv/local_settings.py.sample | 42 +++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 pv/local_settings.py.sample

diff --git a/pv/local_settings.py.sample b/pv/local_settings.py.sample
new file mode 100644
index 00000000..70c9f0df
--- /dev/null
+++ b/pv/local_settings.py.sample
@@ -0,0 +1,42 @@
+
+import os
+
+CONFIG_DIR = '/opt/aura/steering'
+DB_CONFIG = 'steering.mysql.cnf'
+
+SECRET_KEY = '---some-secred-key---'
+
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.mysql',
+        'OPTIONS': {
+            'read_default_file': os.path.join(CONFIG_DIR, DB_CONFIG),
+        },
+    }
+}
+
+CORS_ALLOW_CREDENTIALS = True
+CORS_ORIGIN_WHITELIST = (
+    'http://localhost:8080'
+    # 'https://aura-test.o94.at',
+    # 'https://aura-test.o94.at:443',
+)
+CORS_ALLOW_HEADERS = list(default_headers) + [
+    'content-disposition',
+]
+
+# Uncomment this *after* you have initialized the DB with default tables and data:
+#USE_TZ = False
+
+
+# Comment out the following for temporary debugging, if you want to use the
+# native DRF web forms
+"""
+REST_FRAMEWORK = {
+    # Use Django's standard `django.contrib.auth` permissions,
+    # or allow read-only access for unauthenticated users.
+    'DEFAULT_PERMISSION_CLASSES': [
+        'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
+    ],
+}
+"""
-- 
GitLab