Closed stuart909 closed 5 months ago
As far as I can see, home and about routes do not use dummy data at all. In their respective index view, they call the first Home or About object in the database and use it. I will add access to dummy data in case the db is empty.
What I did in branch 433-remove-dummy-data-Franfif:
Remove Dummy Class Information:
app/__init__.py
file.Relocate Dummy Information to app/util/defaults:
util/defaults/default.py
file.default.py
.Update Route Code for About and Home:
util/defaults/default.py
Home and About classes when these don't exist in the database.[NEW]
util/defaults/default.py
.util/defaults/default.py/image
instead
Description:
The current project initialization in the
app/__init__.py
file includes dummy class information, referred to as "defaults." This information needs to be removed from the app initialization process. Specifically:Remove Dummy Class Information:
app/__init__.py
file to clean up the initialization process.Update Route Code for About and Home:
Relocate Dummy Information to app/util/defaults:
app/util/defaults
. This ensures a more organized structure and separation of concerns.Update Code References to app/util/defaults:
app/util/defaults
for default page data when the database is empty.Delete App Init Dummy Class:
This enhancement aims to streamline the initialization process, improve code organization, and create a more robust default website system. Please review and merge accordingly.