diff --git a/manager/admin.py b/manager/admin.py index e9cf5ff..16f2ee5 100644 --- a/manager/admin.py +++ b/manager/admin.py @@ -20,3 +20,7 @@ from django_otp.plugins import otp_totp, otp_static admin.site.unregister(otp_totp.models.TOTPDevice) admin.site.unregister(otp_static.models.StaticDevice) + +from django_cron.models import CronJobLog + +admin.site.unregister(CronJobLog) diff --git a/vpnmanager/settings.py b/vpnmanager/settings.py index 78aca5e..6b575ca 100644 --- a/vpnmanager/settings.py +++ b/vpnmanager/settings.py @@ -7,7 +7,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '=go8&h#^kh6ksr11e2z-@4qqd6t%63$x#-!s#l_yhw@oyanrys' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ["admin360.kumi.host", "test360.kumi.host"] @@ -26,6 +26,7 @@ INSTALLED_APPS = [ 'django_otp.plugins.otp_static', 'django_otp.plugins.otp_totp', 'two_factor', + 'django_cron', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -33,7 +34,6 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'manager.apps.ManagerConfig', - 'django_cron', ] MIDDLEWARE = [