sudo apt-get install python3.6
sudo apt-get install python-pip
virtualenv -p python3 venv
source venv/bin/activate
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
python manage.py test
http://127.0.0.1:8000/api/
http://127.0.0.1:8000/api/fan/
http://127.0.0.1:8000/api/bulb/
-
Homepage
http://127.0.0.1:8000/
-
Login page -
http://127.0.0.1:8000/accounts/login/
-
Logout page -
http://127.0.0.1:8000/accounts/logout/
- We have a base model called Device Which can be extended to create new types of devices.
- The tools used are Django framework for web portal, DRF for the API, Sqlite for Database, Django test runner for running tests
- We Use Djangos built in authentication system and api browser
- Unit tests cover all the CRUD tests
- Frontend templates use a
base.html
from which all other templates are extended.