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'] }