I can’t find any documentation about settings.cfg. How does it work ? Where is it loaded ? Is it application-specific ?
I’m not sure setting a connection string in a file is the way to go with Heroku : you don’t really have those (they are dynamically generated). When you create a db in Heroku you have a key like this : « HEROKU_POSTGRESQL_ONYX_URL » and the environment variable corresponding to this key has the connection string that the DAL needs. So basically my DAL connection looks something like : db = DAL(os.environ[‘HEROKU_POSTGRESQL_ONYX_URL’]) I’ll probably edit the models in admin for now but it isn’t a very good solution because if I update web2py then my changes are lost... > Le 26 nov. 2014 à 13:01, Leonel Câmara <leonelcam...@gmail.com> a écrit : > > How will you get your db configuration in admin? I don't think it should have > all these ifs and elifs specially for heroku when this isn't heroku specific, > this is about how you can configure the admin to store cookies in the DB. > > Maybe just add an option in settings.cfg to configure the admin's session > storage? Otherwise, I think people just modifying the admin model if they > want that is ok too. > > -- > Resources: > - http://web2py.com <http://web2py.com/> > - http://web2py.com/book <http://web2py.com/book> (Documentation) > - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source > code) > - https://code.google.com/p/web2py/issues/list > <https://code.google.com/p/web2py/issues/list> (Report Issues) > --- > You received this message because you are subscribed to a topic in the Google > Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/aRIVySTv6hE/unsubscribe > <https://groups.google.com/d/topic/web2py/aRIVySTv6hE/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com > <mailto:web2py+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.