Don't create new checks in the docs page. For examples, use a dummy "your-uuid-here" value.

This commit is contained in:
Pēteris Caune 2017-09-20 20:02:24 +03:00
parent fc8d9ffe48
commit 7c1c20b07e
3 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,6 @@ from datetime import datetime, timedelta as td
from croniter import croniter
from django.conf import settings
from django.core.checks import Warning
from django.contrib.auth.models import User
from django.db import models
from django.urls import reverse

View File

@ -110,14 +110,12 @@ def index(request):
def docs(request):
check = _welcome_check(request)
ctx = {
"page": "docs",
"section": "home",
"ping_endpoint": settings.PING_ENDPOINT,
"check": check,
"ping_url": check.url()
"ping_email": "your-uuid-here@%s" % settings.PING_EMAIL_DOMAIN,
"ping_url": settings.PING_ENDPOINT + "your-uuid-here"
}
return render(request, "front/docs.html", ctx)

View File

@ -167,7 +167,7 @@ using the "-command" argument:</p>
<p>
As an alternative to HTTP/HTTPS requests,
you can "ping" this check by sending an
email message to <a href="mailto:{{ check.email }}">{{ check.email }}</a>
email message to <strong>{{ ping_email }}</strong>
</p>
<p>
This is useful for end-to-end testing weekly email delivery.