From 999c6af8e7af3d8289353c4a30e0dedb7099eee1 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 19 Jan 2019 09:52:00 +0300 Subject: [PATCH] configurable bot token --- .../templates/cabinet/_includes/sidebar.html | 21 +++++++++++++++++ cabinet/templates/cabinet/admin_config.html | 23 +++++++++++++++++++ cabinet/urls.py | 3 ++- cabinet/utils.py | 7 ++++++ cabinet/views.py | 17 +++++++++++++- config/celery.py | 8 +++---- config/settings.py | 21 +++++++++++++++-- config/urls.py | 2 +- example.env | 6 ++--- feeds/apps.py | 9 ++++++++ feeds/forms.py | 11 +++++++++ feeds/migrations/0001_initial.py | 11 ++++----- feeds/migrations/0002_feed_lock.py | 18 --------------- feeds/migrations/0003_auto_20190119_0249.py | 18 --------------- feeds/models.py | 4 ++-- feeds/tasks.py | 3 ++- feeds/templates/cabinet/feeds/feed_form.html | 13 ++++++++++- requirements.txt | 7 +++++- static/css/custom.css | 6 +++++ static/css/custom.styl | 6 +++++ 20 files changed, 154 insertions(+), 60 deletions(-) create mode 100644 cabinet/templates/cabinet/admin_config.html delete mode 100644 feeds/migrations/0002_feed_lock.py delete mode 100644 feeds/migrations/0003_auto_20190119_0249.py diff --git a/cabinet/templates/cabinet/_includes/sidebar.html b/cabinet/templates/cabinet/_includes/sidebar.html index d670eb2..8723f74 100644 --- a/cabinet/templates/cabinet/_includes/sidebar.html +++ b/cabinet/templates/cabinet/_includes/sidebar.html @@ -17,6 +17,27 @@ + + {% if request.user.is_superuser %} +
+ + + + {% endif %}