From a2b9cbc14ce168e3232eb0f803af7c01776439ec Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 26 Jan 2019 10:17:46 +0300 Subject: [PATCH] suit admin --- config/settings.py | 9 +++++---- config/suit_config.py | 5 +++++ requirements.txt | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 config/suit_config.py diff --git a/config/settings.py b/config/settings.py index 7596002..dd45887 100644 --- a/config/settings.py +++ b/config/settings.py @@ -17,6 +17,11 @@ DEBUG = env.bool('DJANGO_DEBUG', True) ALLOWED_HOSTS = ['0.0.0.0', '127.0.0.1', 'home.bakatrouble.pw', 'localhost', 'bots.bakatrouble.pw'] INSTALLED_APPS = [ + 'django_extensions', + 'bootstrap4', + 'djconfig', + 'config.suit_config.SuitConfig', + 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -24,10 +29,6 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', - 'django_extensions', - 'bootstrap4', - 'djconfig', - 'cabinet.apps.CabinetConfig', 'feeds.apps.FeedsConfig', ] diff --git a/config/suit_config.py b/config/suit_config.py new file mode 100644 index 0000000..d64636b --- /dev/null +++ b/config/suit_config.py @@ -0,0 +1,5 @@ +from suit.apps import DjangoSuitConfig + + +class SuitConfig(DjangoSuitConfig): + layout = 'vertical' diff --git a/requirements.txt b/requirements.txt index 7778f06..e4669c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,6 +10,7 @@ django-djconfig==0.9.0 django-environ==0.4.5 django-extensions==2.1.4 django-redis==4.10.0 +-e git+https://github.com/darklow/django-suit@9941211bc7d63d94478a3c6479c51926dc75db09#egg=django_suit django-yamlfield==1.0.3 enum34==1.1.6 idna==2.8