mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Psutil system resources library to scenarios/admin added
This commit is contained in:
@@ -123,7 +123,7 @@ State files can be written using YAML, the Jinja2 template system or pure python
|
||||
|
||||
Psutil
|
||||
------
|
||||
`Psutil <https://code.google.com/p/psutil/>`_ is an interface to different system information (e.g. CPU, memory, disks, network, users and processes).
|
||||
`Psutil <https://code.google.com/p/psutil/>`_ is an interface to different system information (e.g. CPU, memory, disks, network, users and processes).
|
||||
|
||||
Here is an example to be aware of some server overload. In case of some failed test (net, CPU) it send an email.
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ to use.
|
||||
import tornado.ioloop
|
||||
import tornado.web
|
||||
|
||||
# Load tamplate file templates/site.html
|
||||
# Load template file templates/site.html
|
||||
TEMPLATE_FILE = "site.html"
|
||||
templateLoader = FileSystemLoader( searchpath="templates/" )
|
||||
templateEnv = Environment( loader=templateLoader )
|
||||
|
||||
Reference in New Issue
Block a user