|
@@ -0,0 +1,46 @@
|
|
1
|
+# Setting #
|
|
2
|
+
|
|
3
|
+Here is a short description of settings available in the file `development.ini`.
|
|
4
|
+
|
|
5
|
+## Listening port ##
|
|
6
|
+
|
|
7
|
+Default configuration is to listen on port 6534.
|
|
8
|
+If you want to adapt this to your environment, edit the `.ini` file and setup the port you want:
|
|
9
|
+
|
|
10
|
+ [server:main]
|
|
11
|
+ ...
|
|
12
|
+ listen = localhost:6543
|
|
13
|
+
|
|
14
|
+To allow other computer to access to this website, listen to "*" instead of localhost:
|
|
15
|
+
|
|
16
|
+ [server:main]
|
|
17
|
+ ...
|
|
18
|
+ listen = *:6534
|
|
19
|
+
|
|
20
|
+## Prod/Debug configuration ##
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+To enable simple debug conf:
|
|
24
|
+
|
|
25
|
+ [app:main]
|
|
26
|
+ ...
|
|
27
|
+ pyramid.reload_templates = true
|
|
28
|
+ pyramid.debug_all = true
|
|
29
|
+ pyramid.includes =
|
|
30
|
+ pyramid_debugtoolbar
|
|
31
|
+
|
|
32
|
+production conf (no reload, no debugtoolbar):
|
|
33
|
+
|
|
34
|
+ [app:main]
|
|
35
|
+ ...
|
|
36
|
+ pyramid.reload_templates = false
|
|
37
|
+ pyramid.debug_authorization = false
|
|
38
|
+ pyramid.debug_notfound = false
|
|
39
|
+ pyramid.debug_routematch = false
|
|
40
|
+
|
|
41
|
+You can, of course, also set level of one of the different logger to have more/less log
|
|
42
|
+about something.
|
|
43
|
+
|
|
44
|
+ [logger_sqlalchemy]
|
|
45
|
+ ...
|
|
46
|
+ level = INFO
|