Przeglądaj źródła

config removed and example added

master
Dirk Alders 2 miesięcy temu
rodzic
commit
cd3335a30a
3 zmienionych plików z 27 dodań i 12 usunięć
  1. 1
    0
      .gitignore
  2. 0
    12
      config.py
  3. 26
    0
      config_example/config.py

+ 1
- 0
.gitignore Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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
+

Ładowanie…
Anuluj
Zapisz