Browse Source

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

pull/140/head
Pēteris Caune 7 years ago
parent
commit
7c1c20b07e
3 changed files with 3 additions and 6 deletions
  1. +0
    -1
      hc/api/models.py
  2. +2
    -4
      hc/front/views.py
  3. +1
    -1
      templates/front/docs.html

+ 0
- 1
hc/api/models.py 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


+ 2
- 4
hc/front/views.py 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)


+ 1
- 1
templates/front/docs.html 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.


Loading…
Cancel
Save