store settings in models and private/appconfig.ini.
e.g.
*private/appconfig.ini*
[google_analytics_id]
google_analytics_id = None
;google_analytics_id = 1

*models/menu.py*
response.google_analytics_id = 
myconf.take('google_analytics_id.google_analytics_id')

*result in view page source code*
<!-- Analytics ==================================== -->
<script src="/visitor/static/js/analytics.min.js"></script>
<script type="text/javascript">
  analytics.initialize({
  'Google Analytics':{trackingId:'None'}
  });
</script>

models/menu.py
response.google_analytics_id = None

settings in models when when view source code the analytics is not shown at 
all (the same app, controller, web2py version, computer)

is it normal or not?

best regards,
stifan

-- 
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.

Reply via email to