SQLAlchemy + URL dispatch wiki tutorial(翻訳中)¶
このチュートリアルでは、 SQLAlchemy と URL dispatch ベースの Pyramid アプリケーションをPythonに慣れ親しんだ開発者に紹介します。チュートリアルを終えると、開発者は認証と承認を含む基本的なwikiアプリケーションを作成します。
コピペできるように、チュートリアルのすべての段階のソースコードをGitHubの特定のブランチまたはバージョンで GitHub <https://github.com/Pylons/pyramid/> の「docs/tutorials/wiki2/src」でブラウズできます。Pyramidのソースがある場合は同じ場所に対応しています。
- Background(背景)
- Design(デザイン)
- インストール(Installation)
- あなたが始める前に(Before you begin)
- SQLite3とその開発パッケージをインストールする(Install SQLite3 and its development packages)
- cookiecutterをインストールする(Install cookiecutter)
- cookiecutterからピラミッドプロジェクトを生成する(Generate a Pyramid project from a cookiecutter)
- 新しく作成したプロジェクトにディレクトリを移動する(Change directory into your newly created project)
- 「VENV」 環境変数を設定して使用する(Set and use a
VENV
environment variable) - 仮想環境を作成する(Create a virtual environment)
- 仮想環境におけるパッケージングツールのアップグレード(Upgrade packaging tools in the virtual environment)
- 開発モードでのプロジェクトのインストール(Installing the project in development mode)
- テストを実行する(Run the tests")
- テストカバレッジ情報を公開する(Expose test coverage information)
- テストとカバレッジcookiecutterのデフォルト(Test and coverage cookiecutter defaults)
- データベースの初期化(Initializing the database)
- アプリケーションを起動する(Start the application)
- ブラウザでアプリケーションにアクセスする(Visit the application in a browser)
- 「Alchemy」 cookcutterがあなたのために作った決定(Decisions the
alchemy
cookiecutter has made for you)
- 基本レイアウト(Basic Layout)
- ドメインモデルの定義(Defining the Domain Model)
- `` setup.py``ファイルの依存関係を宣言します(Declaring dependencies in our
setup.py
file) - 「pip install -e .」を実行しいます。(Running
pip install -e .
) - `` mymodel.py`を削除する( Remove
mymodel.py
) - 「user.py」を追加してください( Add
user.py
) - 「page.py」を追加してください
- 「models/__init__.py」を編集する「Edit
models/__init__.py
」 - 「scripts/initializedb.py」を編集する( Edit
scripts/initializedb.py
) - プロジェクトのインストールとデータベースの再初期化(Installing the project and re-initializing the database)
- ブラウザでアプリケーションを表示する(View the application in a browser)
- `` setup.py``ファイルの依存関係を宣言します(Declaring dependencies in our
- ビューの定義(Defining Views)
- (機械翻訳)認証の追加
- (機械翻訳)承認を追加する
- (機械翻訳)テストの追加
- (機械翻訳)アプリケーションの配布