Deploying Google Analytics With Django

后端 未结 10 1150
遇见更好的自我
遇见更好的自我 2020-12-23 11:29

We\'re about to deploy a new Django website, and we want to use Google Analytics to keep track of traffic on the site. However, we don\'t want all of the hits on developmen

10条回答
  •  旧时难觅i
    2020-12-23 12:31

    You have template context processors that can be used to pass values to all templates without updating all your views.

    http://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors

提交回复
热议问题