forked from GithubBackups/healthchecks
Remove unused imports, cleanup.
This commit is contained in:
parent
c596f485a5
commit
8c7d3570a5
@ -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):
|
||||||
|
@ -1,3 +1 @@
|
|||||||
from django.contrib import admin
|
# The front app has no models.
|
||||||
|
|
||||||
# Register your models here.
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
from django.db import models
|
# The front app has no models.
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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],
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user