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 = [