From f2e0628de1b222ed465718fcba41092a7e984d50 Mon Sep 17 00:00:00 2001 From: SDE Date: Sat, 13 Jan 2024 17:05:57 +0300 Subject: [PATCH] 0.11.1 Google Auth --- GeneralApp/views.py | 9 +++++++-- TWB/settings.py | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 66e17c3..ccb0087 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -19,8 +19,13 @@ def test_code(request): from RoutesApp.models import Route from ReferenceDataApp.models import Airport, City - from RoutesApp.search_matches import search_matches - search_matches() + import allauth + from allauth.socialaccount.models import SocialApp + apps = SocialApp.objects.all() + apps.delete() + + # from RoutesApp.search_matches import search_matches + # search_matches() # try: # # body = request.body diff --git a/TWB/settings.py b/TWB/settings.py index 3333833..b6baa61 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -75,6 +75,8 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'django.contrib.humanize', + 'django.contrib.sites', + 'colorfield', 'ckeditor', @@ -110,6 +112,8 @@ MIDDLEWARE = [ "allauth.account.middleware.AccountMiddleware", ] +SITE_ID = 1 + ROOT_URLCONF = 'TWB.urls' TEMPLATES = [