addxinit /home/pi/start.sh Save

Since Django requires a lot of RAM and the Raspberry Pi might need all its memory capacity to provide some Django functionality, .

It’s advisable to use Django for Raspberry Pi user interfaces without loading the desktop

It also saves quite some disk space.
Packages Entersudo apt-get install chromium-browser git python3-dev sqlite3 x11-xserver-utils xutils xserver-xorg xinit matchbox-window-manager python3-pip xterm -y sudo pip3 install django Configuration Entersudo nano /home/pi/start.shFill the file with#!/bin/sh matchbox-window-Manager -use_cursor no & cd /home/pi/APPNAME /usr/bin/python3.7 manage.py runserver 0.0.0.0:8000 & /usr/bin/chromium-browser –no-first-run –noerrdialogs –start-fullscreen –start-maximized –disable-notifications –disable-infobars –kiosk –incognito http://localhost:8000 with APPNAME being the name of your Django application.
Save, then exit.
Now, enter sudo chmod +x /home/pi/start.sh sudo nano ~/.bashrcAt the end of the file, addxinit /home/pi/start.sh Save, exit and reboot the RPi.
After booting, .

Your Django application should be loaded into a Chromium window

.

Leave a Reply

Your email address will not be published. Required fields are marked *