gpt4 book ai didi

python - 使用 GAE 部署的 Twitter Bootstrap 网站

转载 作者:太空狗 更新时间:2023-10-29 21:12:51 24 4
gpt4 key购买 nike

所以我是一个编程菜鸟。我一直在关注许多 Udacity 类(class),并且我正在慢慢学习编码。

好的,这是我的问题。我已经使用 Twitter Bootstrap 构建了我的博客的基本 HTML 文件,因为它使用起来非常简单。现在我想做的是将 Bootstrap 提供的出色模板与 Google App Engine 的简单托管服务相结合。这是我的菜鸟进来的地方,我完全迷路了。

任何帮助将不胜感激,不要害怕伤害我的感情我是菜鸟,如果这是完全不可能的,我会理解的。

最佳答案

完全有可能。将 bootstrap 下载到一个单独的文件夹,并在你的 app.yaml 文件中,让你的处理程序成为/bootstrap 的 static_dir

application: application-name
version: 1
runtime: python
api_version: 1

handlers:
- url: /stylesheets
static_dir: stylesheets

- url: /bootstrap
static_dir: bootstrap

- url: /.*
script: todoapp.py

并且在您所有的 html 文件中都像这样引用 Bootstrap 。

<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<script src="bootstrap/js/jquery.js"></script>

你应该可以开始了!

关于python - 使用 GAE 部署的 Twitter Bootstrap 网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11681557/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com