Update migration files for Django 5.1.4; remove obsolete merge migrations and adjust history tracking context in templates

This commit is contained in:
pacnpal
2025-02-10 00:11:29 -05:00
parent 228eeeb3c8
commit 4b32580b13
44 changed files with 2353 additions and 2543 deletions

View File

@@ -37,7 +37,6 @@ INSTALLED_APPS = [
"allauth.socialaccount",
"allauth.socialaccount.providers.google",
"allauth.socialaccount.providers.discord",
"simple_history",
"django_cleanup",
"django_filters",
"django_htmx",
@@ -71,7 +70,6 @@ MIDDLEWARE = [
"core.middleware.PgHistoryContextMiddleware", # Add history context tracking
"allauth.account.middleware.AccountMiddleware",
"django.middleware.cache.FetchFromCacheMiddleware",
"simple_history.middleware.HistoryRequestMiddleware",
"django_htmx.middleware.HtmxMiddleware",
"analytics.middleware.PageViewMiddleware", # Add our page view tracking
]
@@ -90,9 +88,9 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"moderation.context_processors.moderation_access",
],
},
},
]
}
}
]
WSGI_APPLICATION = "thrillwiki.wsgi.application"
@@ -144,7 +142,7 @@ TIME_ZONE = "America/New_York"
USE_I18N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# Static files (CSS JavaScript Images)
STATIC_URL = "static/"
STATICFILES_DIRS = [BASE_DIR / "static"]
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
@@ -197,7 +195,7 @@ SOCIALACCOUNT_PROVIDERS = {
},
"SCOPE": ["identify", "email"],
"OAUTH_PKCE_ENABLED": True,
},
}
}
# Additional social account settings