Issue with the "Getting Started" doc

未关闭
#1,787 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
django, python

调研方向

从 django/getting-started/index.html.md 以及报告中确定的 Django 部署检查清单部分开始。在复现部署的同时,将文档中记录的 ALLOWED_HOSTS 配置与 issue 及其链接的示例 repository 中描述的可正常工作的设置进行比较。当教程中记录的设置能够让已部署的 app 成功加载时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
MDX
星标
128
派生
1.1k
平均合并
19 小时 53 分钟
30 天内合并 PR
68

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

superfly/docs 的其他 Issue

查看 superfly/docs 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。