My project about how to display results from Sensor that works in Raspberry Pi.
Html file visit : raspi/raspiapp/templates/raspiapp/json.html
For views.py visit : raspi/raspiapp/views.py
To start your django project :
- open cmd.exe
- activate your virtual environment (if you dont have, type this code :
conda create --name yourenvname django, if you don't have anaconda installed, google it for better experience)- to activate it type :
activate yourenvname
- to activate it type :
- change your directory to your django project where manage.py is located
- type :
python manage.py runserver - open your browser and type localhost:8000/