281225
Tasks Achieved in commit 2:
Update to the main login page and webfront
🌠 This commit only changes the following files: - main.py - web_frint2.py
🌌 Other changes - Cleaned up code - Edited and commented most of the completed code ☄️ Planned Changes - Integration between main.py and web_frint2.py
🌃 Description of changes:
🏙️ Changes to web_frint2.py-----> This adds functionality to the website including background audio, which will autoplay if the user has autoplay for this website configured to be on true. This page is built on the FastAPI and NiceGUI packages and requires the user to have bcrypt to be installed as a package.
🌆 Changes to main.py--------> The changes to main.py are very minimal removing django in order to run NiceGUI and import some functions that were used in the web_frint2.py files. Also removes some of the redundant code that was also used in the web_frint2 file. The bcrypt is also running on this end.
Stumbling Blocks:
I faced challenges with the autoplay of the music along with bcrypt to encrypt the user passwords and other credentials. Along with that i also faced problems with remaining django components and still remaining cached data interfering when the code was run.
Reflective Comments
I feel like the move to NiceGUI is a proper one but the intergration of NiceGUI into my system has revelaed some major issues with the code such as the django cache interfering with the NiceGUI system to operate correctly.
Resources and code used:
StackOverflow
NiceGUI Docs