[geany/www.geany.org] c05f37: Remove unnecessary django-debug-toolbar and cleanup settings
Enrico Tröger
git-noreply at xxxxx
Sat Jan 8 11:55:50 UTC 2022
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sat, 08 Jan 2022 11:55:50 UTC
Commit: c05f3733196cfa61f01c19d4634bb0dc8281d75d
https://github.com/geany/www.geany.org/commit/c05f3733196cfa61f01c19d4634bb0dc8281d75d
Log Message:
-----------
Remove unnecessary django-debug-toolbar and cleanup settings
OPTIONAL_APPS is not necessary and never were as optional as intended.
Modified Paths:
--------------
geany/settings.py
Modified: geany/settings.py
27 lines changed, 5 insertions(+), 22 deletions(-)
===================================================================
@@ -139,7 +139,7 @@
ALLOWED_HOSTS = ('127.0.0.1',
'geany.org',
'www.geany.org')
-INTERNAL_IPS = ("127.0.0.1", "10.0.44.3", "37.120.182.205", "2a03:4000:f:40f:99::205")
+INTERNAL_IPS = ('127.0.0.1', '10.0.44.3')
SECRET_KEY = 'change-me'
@@ -330,6 +330,10 @@
"urlshortener.apps.UrlShortenerAppConfig",
# 3rd party
+ "compressor",
+ "django_extensions",
+ "filebrowser_safe",
+ "grappelli_safe",
"honeypot", # for pastebin
"mezzanine_pagedown",
"mezzanine_sync_pages.apps.MezzanineSyncPagesAppConfig",
@@ -363,11 +367,6 @@
"mezzanine.core.middleware.FetchFromCacheMiddleware",
)
-# Store these package names here as they may change in the future since
-# at the moment we are using custom forks of them.
-PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
-PACKAGE_NAME_GRAPPELLI = "grappelli_safe"
-
# pagedown / markdown
RICHTEXT_WIDGET_CLASS = 'mezzanine_pagedown.widgets.PageDownWidget'
RICHTEXT_FILTERS = ['mezzanine_pagedown.filters.custom']
@@ -389,19 +388,6 @@
TocExtension(toc_depth='2-4'),
)
-#########################
-# OPTIONAL APPLICATIONS #
-#########################
-
-# These will be added to ``INSTALLED_APPS``, only if available.
-OPTIONAL_APPS = (
- "debug_toolbar",
- "django_extensions",
- "compressor",
- PACKAGE_NAME_FILEBROWSER,
- PACKAGE_NAME_GRAPPELLI,
-)
-
#########################
# GEANY SETINGS #
#########################
@@ -437,9 +423,6 @@
)),
(_("Users"), ("auth.User", "auth.Group",))) # pylint: disable=hard-coded-auth-user
-# django-debug-toolbar
-DEBUG_TOOLBAR_PATCH_SETTINGS = False
-
# caching & sessions
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list