They were both generated by the new application wizard, then I modified them. I've copied the relevant portions below (substituting for secret keys, etc.).
0.py from gluon.storage import Storage settings = Storage() settings.migrate = True settings.title = 'My New App' settings.subtitle = 'powered by web2py' settings.author = 'you' settings.author_email = 'y...@example.com' settings.keywords = '' settings.description = '' settings.layout_theme = 'Whitelight' settings.database_uri = 'sqlite://storage.sqlite' settings.security_key = '14f78e4e-5595-4d88-bcd8-49308acf11b4' settings.email_server = 'localhost' settings.email_sender = 'y...@example.com' settings.email_login = '' settings.login_method = 'janrain' settings.login_config = 'domain:api_key' settings.plugins = [] db.py (abridged) ... ######################################################################### ## If you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, etc. ## register with janrain.com, uncomment and customize following from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled = \ ['register','change_password','request_reset_password'] auth.settings.login_form = RPXAccount(request, api_key='xxxxxxxxxxxxxxxxxxxxxx',domain='xxxxxxxxx', url = "http://localhost:8888/%s/default/user/login" % request.application) ... Thanks again for taking a look. Matthew On Jul 31, 4:06 pm, Anthony <abasta...@gmail.com> wrote: > Can you show more of your 0.py and db.py code related to auth settings? Did > you copy those files from somewhere? > > > > > > > > On Sunday, July 31, 2011 3:59:14 PM UTC-4, Matthew wrote: > > That method actually uses the values that are set in the RPXAccount > > object, which is constructed in db.py. > > > On Jul 31, 3:21 pm, Anthony <abas...@gmail.com> wrote: > > > Checkhttp:// > > code.google.com/p/web2py/source/browse/gluon/contrib/login_met.... > > > You might need to override the login_form method. > > > > Anthony > > > > On Sunday, July 31, 2011 3:00:50 PM UTC-4, Matthew wrote: > > > > I just tried to link a new web2py application with my Janrain account, > > > > but I am still seeing the default Janrain options on the /default/user/ > > > > > login. My models/db.py has my key, domain (not full domain, just > > > > Janrain app name), and the url to /default/user/login. My 0.py file > > > > has "settings.login_method = 'janrain'" and "settings.login_config = > > > > 'domain:api_key'". Am I missing anything? > > > > > I am using the layout plugin and a layout - is there another spot to > > > > alter in layouts? > > > > > Thanks, > > > > Matthew