cyberlina bot

This commit is contained in:
2019-11-27 21:21:24 +03:00
parent 61da2bd079
commit bddcc562ba
12 changed files with 322 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ INSTALLED_APPS = [
'bootstrap4',
'crispy_forms',
'djconfig',
'jsoneditor',
'django.contrib.admin',
'django.contrib.auth',
@@ -122,6 +123,9 @@ LOGOUT_REDIRECT_URL = LOGIN_URL
CRISPY_TEMPLATE_PACK = 'bootstrap4'
JSON_EDITOR_JS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/7.0.4/jsoneditor.min.js'
JSON_EDITOR_CSS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/7.0.4/jsoneditor.min.css'
sentry_sdk.init(
dsn=env.str('SENTRY_DSN', None),
integrations=[DjangoIntegration()],

View File

@@ -64,6 +64,7 @@ def get_config_form(mdl):
class Meta:
model = mdl
exclude = ()
widgets = mdl.CUSTOM_WIDGETS if hasattr(mdl, 'CUSTOM_WIDGETS') else {}
return ConfigForm