mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-05-14 10:13:13 +00:00
Merge pull request #162 from jazzband/piwik-warning
Only show piwik warning if using piwik
This commit is contained in:
commit
7e68563849
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,6 @@ from analytical.utils import (is_internal_ip, disable_html,
|
|||
get_required_setting, get_identity)
|
||||
|
||||
import warnings
|
||||
warnings.warn('The Piwik module is deprecated; use the Matomo module.', DeprecationWarning)
|
||||
|
||||
# domain name (characters separated by a dot), optional port, optional URI path, no slash
|
||||
DOMAINPATH_RE = re.compile(r'^(([^./?#@:]+\.)*[^./?#@:]+)+(:[0-9]+)?(/[^/?#@:]+)*$')
|
||||
|
|
@ -68,6 +67,7 @@ def piwik(parser, token):
|
|||
(default) or ``'visit'``. Index should be an integer and the
|
||||
other parameters should be strings.
|
||||
"""
|
||||
warnings.warn('The Piwik module is deprecated; use the Matomo module.', DeprecationWarning)
|
||||
bits = token.split_contents()
|
||||
if len(bits) > 1:
|
||||
raise TemplateSyntaxError("'%s' takes no arguments" % bits[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue