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.
Removed DummyHome class information present in the app/__init__.py file.
Relocate Dummy Information to app/util/defaults:
Created util/defaults/default.py file.
Added default Home class and About class in default.py.
Update Route Code for About and Home:
Modified the route code for the 'about' and 'home' pages to point to util/defaults/default.py Home and About classes when these don't exist in the database.
[NEW]
Default image:
Added default image "/static/images/test.png" in util/defaults/default.py.
Modified all mentions in Pengin-Pi of "/static/images/test.png" to point to util/defaults/default.py/image instead
Easier to maintain, if the default image is changed in the future.
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