Simple Django app to manage project SEO like Google Analytics
Project description
# Django Tools SEO
Simple Django app to manage project SEO like Google Analytics
## Installation
1. Install with pip install `django-tools-seo`.
2. Add `djtools.seo` to your INSTALLED_APPS setting like this:
```
INSTALLED_APPS = [
...
'djtools.seo',
]
```
3. If you want to add the Google Analytics Tracking Script you should
3.1 Add you Google Analytics Tracking ID to your settings file:
```
GOOGLE_ANALYTICS_TRACKING_ID = "UA-TESTID"
```
3.2 Add a context processor to your settings file:
```
TEMPLATES = [
{
...
'OPTIONS': {
'context_processors': [
...
'djtools.seo.context_processors.google_analytics',
],
},
},
]
```
3.3 Include the `google_analytics.html` into your base template:
```
{% include "djtools/seo/google_analytics.html" %}
```
Simple Django app to manage project SEO like Google Analytics
## Installation
1. Install with pip install `django-tools-seo`.
2. Add `djtools.seo` to your INSTALLED_APPS setting like this:
```
INSTALLED_APPS = [
...
'djtools.seo',
]
```
3. If you want to add the Google Analytics Tracking Script you should
3.1 Add you Google Analytics Tracking ID to your settings file:
```
GOOGLE_ANALYTICS_TRACKING_ID = "UA-TESTID"
```
3.2 Add a context processor to your settings file:
```
TEMPLATES = [
{
...
'OPTIONS': {
'context_processors': [
...
'djtools.seo.context_processors.google_analytics',
],
},
},
]
```
3.3 Include the `google_analytics.html` into your base template:
```
{% include "djtools/seo/google_analytics.html" %}
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-tools-seo-1.0.5.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for django_tools_seo-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fb2d26ea34e5df92a6e6924d0e106e220ef3be038b3d9f7a1a9465dd40fc5e |
|
MD5 | 469d89cf7ee6b9048d02d2eab008a68c |
|
BLAKE2b-256 | 2a89aa3796f74bacfa6dd464cb37523c1000a6e91f9a8fb1eafce1a1fd1f0017 |