Added IP of dev host.

Fixed Django filters.
This commit is contained in:
Dirk Jahnke 2022-05-30 11:39:47 +02:00
parent 49b79beb18
commit 9247c27278
1 changed files with 4 additions and 2 deletions

View File

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