You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using Subscribie standalone , (without Subscribie Deployer) the settings model is empty by default which causes:
File "subscribie/utils.py", line 58, in get_shop_default_country_code
default_country_code = settings.default_country_code
AttributeError: 'NoneType' object has no attribute 'default_country_code'
Describe the solution you'd like
During blueprint first run, pre-populate the Settings model with a row of settings, with the column insertion defaults.
Is your feature request related to a problem? Please describe.
When using Subscribie standalone , (without Subscribie Deployer) the settings model is empty by default which causes:
Describe the solution you'd like
During blueprint first run, pre-populate the Settings model with a row of settings, with the column insertion defaults.
before_app_first_request
withrecord_once
becausebefore_app_first_request
has been deprecated (unable to find reason)record_once
may or may not be the correct replacement*.subscribie/subscribie/views.py
Line 48 in f4b9115
*Update:
record_once
not used- instead we've moved initialisation logic to newbootstrap_app.py
and passed an application context to that.Describe alternatives you've considered
Additional context
We crudely populate
Settings
model here but that's programming by coincidence and should also be removed.The text was updated successfully, but these errors were encountered: