Could do this in Keg Auth, but since the app is likely to customize the user, maybe we should do it in the app instead?
Can tie into Keg's db_init_post signal or, as long as DatabaseManager is being customized in app.py can just do:
def db_init(self):
super().db_init()
# If all the developer variables are set, then create our first user.
try:
ents.User.add(
name=self.app.config['DEVELOPER_NAME'],
email=self.app.config['DEVELOPER_EMAIL'],
password=self.app.config['DEVELOPER_PASSWORD'],
is_verified=True,
)
except KeyError:
pass
Could do this in Keg Auth, but since the app is likely to customize the user, maybe we should do it in the app instead?
Can tie into Keg's
db_init_post
signal or, as long asDatabaseManager
is being customized inapp.py
can just do: