Repository cointains CRUD app in Django developed for Luna Scientific recruitment task.
pip install virtualenv
virtualenv venv
venv\Scripts\activate
pip install -r requirements.txtcd CRUD
python manage.py runserverIn settings.py fill required fields
'NAME': 'your-database-name',
'USER': 'your-user-name',
'PASSWORD': 'your-password',
'HOST': 'localhost',
'PORT': '5432',Also add a new table to your db using this script
create table sensors (
user_id INTEGER,
system_id INTEGER,
ph VARCHAR(99),
water_temperature VARCHAR(99),
TDS VARCHAR(99),
created_at TIMESTAMP default CURRENT_TIMESTAMP
);