- REST Django Backend for cde2 Smart Classroom Challenge
- REST API for wdb Mini Challenge 1
cd SmartClassRoom
pip -r requirements.txt
python manage.py runserver
cd SmartClassRoom
python manage.py test
https://docs.timescale.com/install/latest/installation-docker/#set-up-the-timescaledb-extension
- Command:
docker run -d --name timescaledb -p 5432:5432 \
-v /your/data/dir:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=password timescale/timescaledb:latest-pg14
- add the database settings to the settings.py in the root dir:
DATABASES = {
'default': {
'ENGINE': 'timescale.db.backends.postgresql',
'NAME': 'DBNAME',
'USER': 'YOURDBUSER',
'PASSWORD': 'YourPassword',
'HOST': 'YOURLOCALPORT',
'PORT': '5432',
'TEST': {
'NAME': 'smartclassroom_test_unittest',
},
}
}
- username:
admin
- password:
Welcome12
python manage.py makemigrations
python manage.py migrate
Made with ❤️ and 🥥