]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blobdiff - scripts/lcp_django/database/settings.py
Make Django DB layer working
[linux-conf-perf.git] / scripts / lcp_django / database / settings.py
diff --git a/scripts/lcp_django/database/settings.py b/scripts/lcp_django/database/settings.py
new file mode 100644 (file)
index 0000000..4a9864c
--- /dev/null
@@ -0,0 +1,22 @@
+import os
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = '34xej!+ag9*nzkoi1$!&0c6of-9%wu5kl8f-6qj4!ld1b@av+1'
+
+# Application definition
+
+INSTALLED_APPS = ['database'] # We want this directory to be a django app
+
+MIDDLEWARE_CLASSES = ()
+
+# Database
+# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.postgresql_psycopg2',
+        'HOST': '',
+        'NAME': 'linux-conf-perf',
+        #'ENGINE': 'django.db.backends.sqlite3',
+        #'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+   }
+}