gbybk945 / tutorial

0 stars 0 forks source link

Testbranch #1

Closed gbybk945 closed 3 years ago

gbybk945 commented 3 years ago

概要

解説コメントを追加。

完了条件

gbybk945 commented 3 years ago

以下が記載されている概要欄に完了条件を追記しましょう

解説コメントを追加。 ex.

概要

解説コメントを追加。

完了条件

↑こちらの内容についてですが、「概要欄」とはどこの部分を示しますか?

gbybk945 commented 3 years ago

再度、Pull Requestにあげてみました。

また、実際にpython3 manage.pyで以下のように実行し、「http://127.0.0.1:5000/」にアクセスしてみたのですが、HTMLのコードしか表示されず、CSSがうまく反映されていないような気がしました。なにか原因が考えられますか

hosokawadaisuke@hosokawadaisukenoMacBook-Pro tutorial % python3 manage.py
/Users/hosokawadaisuke/Library/Python/3.8/lib/python/site-packages/flask_sqlalchemy/__init__.py:872: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  warnings.warn(FSADeprecationWarning(
 * Serving Flask app 'flaskr' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
/Users/hosokawadaisuke/Library/Python/3.8/lib/python/site-packages/flask_sqlalchemy/__init__.py:872: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  warnings.warn(FSADeprecationWarning(
 * Debugger is active!
 * Debugger PIN: 796-463-616
127.0.0.1 - - [13/Aug/2021 06:16:51] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [13/Aug/2021 06:16:51] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [13/Aug/2021 06:17:32] "GET / HTTP/1.1" 200 -

↓表示結果

<!doctype html>

<title>Flaskr</title>

<link rel=stylesheet type=text/css href="/static/style.css">

<div class=page>

  <h1>Flaskr</h1>

  <form action="/add" method=post class=add-entry>

    <dl>

      <dt>Title:

      <dd><input type=text size=20 name=title>

      <dt>Text:

      <dd><textarea name=text rows=5 cols=20></textarea>

      <dd><input type=submit value=Share>

    </dl>

  </form>

  <ul class=entries>

    <li><em>Unbelievable.  No entries here so far</em>

  </ul>

</div>
technicakidz commented 3 years ago

READMEの一例


tutorial

このアプリについて

Flask チュートリアルの練習用リポジトリ

https://study-flask.readthedocs.io/ja/latest/02.html

Usage(使い方)

$ pip install -r requirements.txt

をターミナルで起動しインストール

requirements.txtについて

その他