This project will read the PC properties and return JSON as response.
Install Django
- $ pip3 install Django
To create a new Django project using the django-admin command line tool, you can use the startproject command. The basic syntax is as follows:
- $ django-admin startproject pcproject
In Django, an app is a self-contained module that encapsulates a specific functionality. To create a new app within a Django project, you can use the startapp command in the manage.py file. The basic syntax is as follows:
- $ python3 manage.py startapp pcapp
Start the server
- $ python3 manage.py runserver
- $ python3 manage.py runserver 0.0.0.0:8000
- Glances is an open-source system cross-platform monitoring tool.
-
For the Web server mode, run:
-
$ glances -w