Remove Cron Logs from admin
This commit is contained in:
parent
a1be826eeb
commit
5979e2cec5
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue