From 9247c27278c6a992c11d245c12a9229756fed9e1 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Mon, 30 May 2022 11:39:47 +0200 Subject: [PATCH] Added IP of dev host. Fixed Django filters. --- homelog/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homelog/settings.py b/homelog/settings.py index 82e47ba..524c36b 100644 --- a/homelog/settings.py +++ b/homelog/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-!&87^_vnfn^am1f!w7-a)rrxcx(&5i7)h=bcl4)$8882c2-$na # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['192.168.89.45', '127.0.0.1', 'localhost'] # Application definition @@ -38,6 +38,7 @@ INSTALLED_APPS = [ 'booker', 'api', 'rest_framework', + 'django_filters', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -186,5 +187,6 @@ REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', - ] + ], + 'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'] }