mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 06:31:09 -05:00
Refactor environment setup and enhance development scripts for ThrillWiki
This commit is contained in:
@@ -95,7 +95,7 @@ urlpatterns = [
|
||||
path("moderation/", include("moderation.urls", namespace="moderation")),
|
||||
path(
|
||||
"env-settings/",
|
||||
views***REMOVED***ironment_and_settings_view,
|
||||
views.environment_and_settings_view,
|
||||
name="environment_and_settings",
|
||||
),
|
||||
]
|
||||
|
||||
@@ -119,7 +119,7 @@ class SearchView(TemplateView):
|
||||
|
||||
def environment_and_settings_view(request):
|
||||
# Get all environment variables
|
||||
env_vars = dict(os***REMOVED***iron)
|
||||
env_vars = dict(os.environ)
|
||||
|
||||
# Get all Django settings as a dictionary
|
||||
settings_vars = {setting: getattr(settings, setting) for setting in dir(settings) if setting.isupper()}
|
||||
|
||||
Reference in New Issue
Block a user