Re: [web2py] [Newbie] Best practice to set application wide settings

2011-07-26 Thread Jagmal
Thanks Bruno for the suggestions. I will keep these in mind.

[web2py] [Newbie] Best practice to set application wide settings

2011-07-22 Thread Jagmal
Hi All, I am new to web2py framework and have been working on a small project to set up authentication. In here, I would like to configure default options. For ex, I would like to disable registration. I am wondering what is a good way to do it. Should I create a model class and put these

Re: [web2py] [Newbie] Best practice to set application wide settings

2011-07-22 Thread Bruno Rocha
The best practice says that: 1. have the latest web2py version 2. create your classes and custom objects in /modules 3. create in /modules a class to hold your settings properties or use gluon.storage.Storage 4. In models import your modules with your classes and objects (you can use 'current'