Bläddra i källkod

config removed and example added

master
Dirk Alders 2 månader sedan
förälder
incheckning
cd3335a30a
3 ändrade filer med 27 tillägg och 12 borttagningar
  1. 1
    0
      .gitignore
  2. 0
    12
      config.py
  3. 26
    0
      config_example/config.py

+ 1
- 0
.gitignore Visa fil

@@ -2,6 +2,7 @@
2 2
 data/pages
3 3
 data/static
4 4
 db.sqlite3
5
+config.py
5 6
 
6 7
 # ---> Python
7 8
 # Byte-compiled / optimized / DLL files

+ 0
- 12
config.py Visa fil

@@ -1,12 +0,0 @@
1
-import os
2
-#
3
-#
4
-APP_NAME = "piki"
5
-STARTPAGE = "startpage"
6
-
7
-
8
-# SECURITY WARNING: don't run with debug turned on in production!
9
-DEBUG = True
10
-#
11
-SECRET_KEY = "*+=wy%2lo2^@fxxtmx0)14x507%6v73ke-%24%_fb6f+3h^c)-"
12
-#

+ 26
- 0
config_example/config.py Visa fil

@@ -0,0 +1,26 @@
1
+#
2
+# Piki Setting
3
+#
4
+STARTPAGE = "startpage"
5
+
6
+
7
+#
8
+# General settings
9
+#
10
+# APP_NAME is used for logging
11
+APP_NAME = 'piki'
12
+
13
+# SECURITY WARNING: don't run with debug turned on in production!
14
+DEBUG = False
15
+
16
+# SECURITY WARNING: don't run with a dummy secret in production!
17
+SECRET_KEY = None
18
+
19
+# SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing!
20
+ALLOWED_HOSTS = ['127.0.0.1', 'localhost', ]
21
+
22
+#
23
+# Style settings
24
+#
25
+DEFAULT_THEME = 'clear-blue'
26
+

Laddar…
Avbryt
Spara