Pengin-Open-Source / pengin-pi

PENGIN PI! A CRM with the back bone of a feature light ERP system. Utilitarian in design, easy to extend, customize, and deploy. Made by a community, supported by Tobu Pengin.
GNU General Public License v3.0
9 stars 1 forks source link

Remove dummy data from app initialization and create a more robust default website system. #433

Closed stuart909 closed 5 months ago

stuart909 commented 6 months ago

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:

This enhancement aims to streamline the initialization process, improve code organization, and create a more robust default website system. Please review and merge accordingly.

franfif commented 6 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.

franfif commented 6 months ago

What I did in branch 433-remove-dummy-data-Franfif:

[NEW]