how about create a models/startup.py
def startupcode():
....
db.commit()
import os
os.rename(os.path.join(request.folder,'models','startup.py'),
os.path.join(request.folder,'private','startup.py'))
startupcode()
On Nov 22, 10:08 am, petrasadi <[email protected]> wrote:
> In my auth_group data I have defined a 'manager' role. The problem is that
> when I try to deploy my app, the db does not get transferred, so my code
> breaks because the 'manager' group cannot be found.
> Is there a way to have it initialized when the app installs in a new
> location?
> Thank you