Remove unused imports, cleanup.

This commit is contained in:
Pēteris Caune 2020-04-07 10:08:20 +03:00
parent c596f485a5
commit 8c7d3570a5
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
6 changed files with 3 additions and 10 deletions

View File

@ -19,7 +19,6 @@ from hc.api import schemas
from hc.api.decorators import authorize, authorize_read, cors, validate_json from hc.api.decorators import authorize, authorize_read, cors, validate_json
from hc.api.models import Check, Notification, Channel from hc.api.models import Check, Notification, Channel
from hc.lib.badges import check_signature, get_badge_svg from hc.lib.badges import check_signature, get_badge_svg
from hc.lib.jsonschema import ValidationError, validate
class BadChannelException(Exception): class BadChannelException(Exception):

View File

@ -1,3 +1 @@
from django.contrib import admin # The front app has no models.
# Register your models here.

View File

@ -1,3 +1 @@
from django.db import models # The front app has no models.
# Create your models here.

View File

@ -1,4 +1,4 @@
from hc.api.models import Channel, Check from hc.api.models import Check
from hc.test import BaseTestCase from hc.test import BaseTestCase

View File

@ -291,7 +291,6 @@ def serve_doc(request, doc="introduction"):
ctx = { ctx = {
"page": "docs", "page": "docs",
"section": "home",
"section": doc, "section": doc,
"content": content, "content": content,
"first_line": content.split("\n")[0], "first_line": content.split("\n")[0],

View File

@ -1,7 +1,6 @@
from django.conf import settings from django.conf import settings
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.db import models from django.db import models
from django.template.loader import render_to_string
if settings.USE_PAYMENTS: if settings.USE_PAYMENTS:
import braintree import braintree