Django app for managing Google Analytics and Site Verification codes.
Installation
In your virtualenv just type:
$ pip install django-google-tools
Configuration
In Django 1.6 the sites framework is disabled by default, for enable the sites framework in Django 1.6 follow the steps 1, 2 and 3:
Add ‘django.contrib.sites’ to your INSTALLED_APPS setting.
Define a SITE_ID setting:
SITE_ID = 1
Run in your shell:
$ ./manage.py syncdb
Add googletools to your INSTALLED_APPS:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', ... 'googletools', ... )Run in your shell:
$ ./manage.py syncdb
Or if you are using South:
$ ./manage.py migrate
If you have in your settings DEBUG=True googletools will not render anything because this library is inteded mostly to use on production sites, if you want to change this behavior you can set GOOGLETOOLS_ENABLED=True in your settings file. Just for clarification it is defined like this:
GOOGLETOOLS_ENABLED = not DEBUG
This means, by default googletools will be enabled when DEBUG=False.
Management
Go to the admin interface. When correctly installed, you will find the Googletools app. There you can manage your Google Analytics and Site Verification codes.
Metadata
Release files for django-google-tools 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-google-tools-1.1.0.tar.gz | 5.7 kB | Without provenance | Details |
Release files / django-google-tools-1.1.0.tar.gz
| Download URL | django-google-tools-1.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c22ae6682c711c4053a0b67baebe9b085bf8e589fa5851c87e4f13e202c45073
|
|
BLAKE2b-256 checksum How to use checksums |
a52475b8a1302cec391c22dcc1612d40f053410ae1477620666e8aa3722ae042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-google-tools 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.