diff --git a/SciPost_v1/settings/base.py b/SciPost_v1/settings/base.py index 13797a0598b7b5263b0cf30a1489a08e60573eca..2768b7b47e7bee1a3c4a3b876d890b465a363512 100644 --- a/SciPost_v1/settings/base.py +++ b/SciPost_v1/settings/base.py @@ -381,7 +381,6 @@ LOGGING = { CELERY_RESULT_BACKEND = 'django-db' CELERY_BROKER_URL = get_secret('CELERY_BROKER_URL') CELERY_IMPORTS = ('submissions.tasks', ) -FLOWER_PORT = get_secret('FLOWER_PORT') # Automation. diff --git a/scipost/urls.py b/scipost/urls.py index 3475572dd6643c0cc13e804eba5896871ec4aeb5..4e44249659a7d36864308b1b734d7356a24295b7 100644 --- a/scipost/urls.py +++ b/scipost/urls.py @@ -19,7 +19,6 @@ JOURNAL_REGEX = '(?P<doi_label>%s)' % REGEX_CHOICES urlpatterns = [ url(r'^$', views.index, name='index'), - url(r'^flower/', views.flower, name='flower'), # monitor for Celery tasks; su only url(r'^files/secure/(?P<path>.*)$', views.protected_serve, name='secure_file'), # General use pages diff --git a/scipost/views.py b/scipost/views.py index bcb1b4c287f52665b031a00d876ac9fb7560133a..efdec24ed6a58c2b28dbec591c325d3a752c4082 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -129,16 +129,6 @@ def index(request): return render(request, 'scipost/index.html', context) -def flower(request): - """ - Monitoring pages for the Celery-driven scheduled tasks. - This view is accessible to superusers only. - """ - if not request.user.is_authenticated or not request.user.is_superuser: - raise Http404 - return redirect('https://localhost:%s' % settings.FLOWER_PORT) - - def protected_serve(request, path, show_indexes=False): """ Serve media files from outside the public MEDIA_ROOT folder.