Takes the the name of a location with a timeframe and returns usable averages over that time frame.
This assumes ubuntu server or desktop.
- Virtual env
- Ubuntu desktop or server
- Git - https://github.com/Python-Marketing/climate-watch
- Django
- Python 3 and pip
$ mkdir /var/log/DEVELOPMENT
Give access to the logging :
$ chown -r username:username /var/log/DEVELOPMENT
$ mkdir /development
$ chown -r username:username /development
$ cd /development
$ git clone https://github.com/Python-Marketing/django-content-server.git
$ cd /development/django-content-server
Run this command to create a virtualenv, change the path to anything but /var/tmp
$ virtualenv -p python3 /var/tmp/venv
Then we run the following code, in a terminal in the directory /development/django-content-server
:
$ source /var/tmp/venv/bin/activate
To activate the virtual env
ALLOWED_HOSTS = ['192.168.1.3', '10.42.0.1', '10.42.0.122']
Run the script :
python3 setup_content_server.py
Errors will hint at you what ubuntu packages are needed.
Read through the script its self explanatory. You can adapt it to so almost anything.