From 612e893bc87c4a81e2a98de75c2242c319edcaf9 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 14 Jun 2021 21:49:26 +0300 Subject: Testing for django.core.exceptions.ImproperlyConfigured --- servo/management/commands/scheduler.py | 4 ++-- servo/models/common.py | 4 +++- servo/tasks.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/servo/management/commands/scheduler.py b/servo/management/commands/scheduler.py index c9e3839..d53e050 100644 --- a/servo/management/commands/scheduler.py +++ b/servo/management/commands/scheduler.py @@ -3,10 +3,10 @@ from datetime import datetime import django import django_rq -from django.core.management.base import BaseCommand + from django_rq.management.commands import rqscheduler -django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. +#django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. from servo.tasks import check_mail diff --git a/servo/models/common.py b/servo/models/common.py index b1b756f..2c7fa08 100644 --- a/servo/models/common.py +++ b/servo/models/common.py @@ -46,7 +46,9 @@ class CsvTable(object): self.header = u'' def padrow(self, row): - """Pad row to self.colwdith""" + """ + Pad row to self.colwdith + """ r = [] for c in row: r.append(str(c).ljust(self.colwidth)) diff --git a/servo/tasks.py b/servo/tasks.py index c31dd22..04c0a8e 100644 --- a/servo/tasks.py +++ b/servo/tasks.py @@ -29,7 +29,7 @@ def get_rules(): def apply_rules(event): """ - Applies configured rules + Applies configured rules to an event event is the Event object that was triggered """ -- cgit v1.2.3