Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Request(400) #1

Open
fedecaccia opened this issue Jan 6, 2019 · 3 comments
Open

Bad Request(400) #1

fedecaccia opened this issue Jan 6, 2019 · 3 comments

Comments

@fedecaccia
Copy link

After downloading the project and followed all steps described in readme, I try to acces from browser to
http://127.0.0.1:8000/api/v1/songs/
http://127.0.0.1:8000/api/v1/songs/2/
http://127.0.0.1:8000/api/v1/auth/login/
http://127.0.0.1:8000/api/v1/auth/register/
and I get Bad Request.

@set92
Copy link

set92 commented Feb 20, 2019

You need to add 127.0.0.1 to allowed_host in settings.py, and you could also put DEBUG = True to see the message errors.

DEBUG = True
ALLOWED_HOSTS = ["127.0.0.1"]

@alifakbarsyah
Copy link

@set92 thanks for the solutions mate!

@pushpdeep
Copy link

I did the changes in the settings.py but I am getting the output as ( is the output correct ? )
music-app_issue

@set92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants