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

Issue with the "Getting Started" doc #1787

Open
JonDevOps opened this issue Aug 20, 2024 · 1 comment
Open

Issue with the "Getting Started" doc #1787

JonDevOps opened this issue Aug 20, 2024 · 1 comment

Comments

@JonDevOps
Copy link

JonDevOps commented Aug 20, 2024

I found an issue with this document.

Title: Getting Started
Location: https://fly.io/docs/django/getting-started/ exactly at https://fly.io/docs/django/getting-started/#django-deployment-checklist
Source: https://github.com/superfly/docs/blob/main/django/getting-started/index.html.md

Describe the issue

I started tutorial and i noticed when i deployed it i wasnt looking at the server 8000. But after What i noticed is when i get to the deployment section of the tutorial and I update the ALLOWED_HOSTS it breaks the app.

So when i add import os & APP_NAME = os.environ.get("FLY_APP_NAME") the code still works after saving. But when i add ALLOWED_HOSTS = [f"{APP_NAME}.fly.dev"] it stops working, and i add it exactly how it is in your example repo. I put import os at the top and APP_NAME above allowed hosts.

I put a screenshot of the error im getting in the comment below ind a pdf embedded in the comment

Addtional info

@JonDevOps
Copy link
Author

Heres a full image of the error message I recieved after changing the allowed hosts. Remember it should say like "Hello, Fly!". I guess the good thing is even though it throughs the error the project did actually deploy. I just need to know why this error occurs, if i should worry about it, and if so how do i fix it.
screencapture-127-0-0-1-8000-2024-08-19-19_54_10

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

1 participant