Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

ALLOWED_HOSTS can't be blank #26

@eugenehiggins

Description

@eugenehiggins

In step 2.4 you say to run the devserver which gives an error:

Invalid HTTP_HOST header: 'api.local.test:8000'. You may need to add 'api.local.test' to ALLOWED_HOSTS.
Bad Request: /
[02/Nov/2021 16:10:32] "GET / HTTP/1.1" 400 71270
Invalid HTTP_HOST header: 'api.local.test:8000'. You may need to add 'api.local.test' to ALLOWED_HOSTS.

ALLOWED_HOSTS in settings.py needs to be edited to something like

ALLOWED_HOSTS = ['api.local.test', 'localhost', '127.0.0.1']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions