Skip to content

Following the readme will end up in an error on runserver as allowhosts is set to back4app not local #3

@ivwivw

Description

@ivwivw

error: Invalid HTTP_HOST header: '127.0.0.1:8000'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.

suggest: in settings.py
#ALLOWED_HOSTS = ['containersdjango-alysson.b4a.run','node26a.containers.back4app.com' ]
#set this for local testing and use line above for container on back4app
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']

see my pull request

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