it's a clear separation of code and configuration. When you deploy the application on a server you usually have a different database connection string (and maybe other different settings as well), usually even multiple setups for dev, test and so on. Without a configuration file you'd have to change the source code on the deployed app.
Am Sonntag, 19. Juli 2015 17:10:30 UTC+2 schrieb [email protected]: > > why it better than code in /models/0.py ? > ==== > response.db_cs = 'DB_CONN_STR' > or > DB_SC = 'DB_CONN_STR' > ==== > > четверг, 16 июля 2015 г., 5:29:03 UTC+3 пользователь Alex написал: >> >> thanks for the AppConfig implementation! this is really useful and allows >> easy configuration of db connections. Actually I posted a question about >> this a few years ago - in the meantime I found a workaround but I'll change >> it to AppConfig soon. >> >> Is this already mentioned in the book somewhere? I couldn't find it. >> >> Alex >> > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

