I often create a models/0.py file. In there
trigger = os.path.join(request.folder,'started')
if not os.path.exists(trigger):
FIRST_RUN = True
open(trigger,'w').write(str(request.now))
else:
FIRST_RUN = False
On Tuesday, 16 July 2013 17:34:55 UTC-5, Dragan Matic wrote:
>
> What would be the best way to create an app setup? After
> uploading/installing an app to a server I would like a user to be able to
> start a setup page where he would choose a database/user/password and a few
> other configuration parameters. Problem is that for every called page model
> is executed and it wants to create a db object and create tables. Is it
> possible to execute a controller without a model and execute a model only
> after setting up database parameters?
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.