per page, with , order by , clip by
Results of 1 - 10 of about 81 for manage (0.005 sec.)
GeoDjango チュートリアル 12799
GeoDjango チュートリアル はじめに GeoDjangoは、Django用の標準のcontribモジュールであり、それを世界クラスの地理情報Webフレームワークに変えます。GeoDjangoは、位置情報サービスなどの地理情報Webアプリケーションを作成するのを可能な限り簡単にするこ ... 期化されます。ここで、 geodjango プロジェクトの中に world Django アプリケーションを作成します: /  $ cd geodjango $ python manage.py startapp world ...\> cd geodjango ...\> py manage.py startapp world settings.py の設定 geodjango プロジェクトの設定は g ... デルを定義した後、データベースと同期する必要があります。まず、データベースマイグレーションを作成してください: /  $ python manage.py makemigrations Migrations for 'world': world/migrations/0001_initial.py: + Create model WorldBorder ...\> py manage.py ... ions/0001_initial.py: + Create model WorldBorder WorldBorder モデルのテーブルを生成するSQLを見てみましょう: /  $ python manage.py sqlmigrate world 0001 ...\> py manage.py sqlmigrate world 0001 このコマンドを実行すると、次の出力が生成されるはずです: ...
https://man.mtool.work/django/6.1/ref/contrib/gis/tutorial.html
はじめての Django アプリ作成、その 2 11269
はじめての Django アプリ作成、その 2 このチュートリアルは チュートリアルその 1 の続きです。ここでは、データベースをセットアップして、最初のモデルを作成し、そして Django が自動的に生成してくれる管理サイトについて、簡単なイントロダクションをし ... ーブルを使うので、使い始める前にデータベースにテーブルを作る必要があります。以下のコマンドを実行してください: /  $ python manage.py migrate ...\> py manage.py migrate migrate コマンドは INSTALLED_APPS の設定を参照するとともに、 mysite/settings.py ファ ... れで Django は、 polls アプリケーションが含まれていることを認識できます。もうひとつコマンドを実行しましょう: /  $ python manage.py makemigrations polls ...\> py manage.py makemigrations polls 次のようなものが表示されるはずです: Migrations for 'polls' ... を手動で微調整したいというときのために、マイグレーションは人間可読なファイルとして設計されています。 もし興味があれば python manage.py check を実行することもできます; これはマイグレーションを作成したりデータベースにふれることなく、プロジェクトに何か問題が ...
https://man.mtool.work/django/6.1/intro/tutorial02.html
はじめての Django アプリ作成、その 1 11037
はじめての Django アプリ作成、その 1 さあ、例を交えながら学んでゆきましょう。 このチュートリアルでは、簡単な投票 (poll) アプリケーションの作成に取り組ん でもらいます。 Poll アプリケーションは 2 つの部分からなります: ユーザが投票したり結果を ... パッケージ名と名前が衝突します) を使わないようにしましょう。 startproject が何を作成したかをみてみましょう: djangotutorial/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py ファイルはそれぞれ以下のような役割を持っています: manage.py : D ... jango プロジェクトに対する様々な操作を行うためのコマンドラインユーティリティです。詳しくは django-admin と manage.py 内の manage.py を参照してください。 mysite/ : これは実際のプロジェクト用のPythonパッケージを含むディレクトリです。このデ ... するか確認しましょう。まだであれば、 djangotutorial ディレクトリに移動し、以下のコマンドを実行してください。 /  $ python manage.py runserver ...\> py manage.py runserver コマンドライン上で下記の出力が確認できるでしょう: Performing system checks... Sy ...
https://man.mtool.work/django/6.1/intro/tutorial01.html
Django 1.4 リリースノート 11037
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... tographic signing , several CSRF improvements , and simple clickjacking protection . An updated default project layout and manage.py that removes the "magic" from prior versions. And for those who don't like the new layout, you can use custom project a ... nds more comprehensively. See the documentation for more details and concrete examples. Updated default project layout and manage.py Django 1.4 ships with an updated default project layout and manage.py file for the startproject management command. The ... se fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble moving from development to deployment, and other di ...
https://man.mtool.work/django/6.1/releases/1.4.html
テストを書いて実行する 9493
テストを書いて実行する 参考 テストチュートリアル 、 テストツールリファレンス 、 テストに関する応用的なトピック も参照 ドキュメントは2つの大きなセクションに分けられます。前半のパートでは、Django でのテストの書き方を説明します。後半では、テス ... スイートの中で実行した時には失敗してしまうという状況が発生することがあります。 テストの実行 テストが書けたら、プロジェクトの manage.py ユーティリティの test コマンドでテストが実行できます。 $ ./manage.py test Test discovery is based on the unittest modul ... in test discovery . By default, this will discover tests in any file named test*.py under the current working directory. ./manage.py test に好きな数の「テストラベル」を与えることで、特定のテストを指定することもできます。各テストラベルには、パッケージ、 ... ット区切りの Python パスを指定します。たとえば、以下のように指定します。 # Run all the tests in the animals.tests module $ ./manage.py test animals.tests # Run all the tests found within the 'animals' package $ ./manage.py test animals # Run just one tes ...
https://man.mtool.work/django/6.1/topics/testing/overview.html
マイグレーション 9029
マイグレーション マイグレーション (Migrations) は、Django でモデルに対して行った変更 (フィールドの追加やモデルの削除など) をデータベーススキーマに反映させる方法です。大抵のマイグレーションは自動で行われるものの、いつマイグレーションが作られ ... たとえば、フィールドを追加してモデルを削除するなど、モデルに変更を加えてから、 makemigrations を実行してください。 $ python manage.py makemigrations Migrations for 'books' : books/migrations/0003_auto.py: ~ Alter field author on book すると、あなたが書い ... 。 問題なく新しいマイグレーションファイルが生成されたら、期待通りに変更が行われるように、データベースに適用します: $ python manage.py migrate Operations to perform: Apply all migrations: books Running migrations: Applying books.0003_auto... OK マイグレー ... ーションに、自動生成された名前ではなく、意味のある名前を与えたければ、 makemigrations --name オプションが使えます。 $ python manage.py makemigrations --name changed_my_model your_app_label Executing sqlmigrate The sqlmigrate command takes migration names ...
https://man.mtool.work/django/6.1/topics/migrations.html
staticfiles アプリ 8906
staticfiles アプリ django.contrib.staticfiles は、各アプリケーション(と、あらかじめ指定した他の場所)から静的ファイルを収集し、本番環境で簡単に提供できるように一か所にまとめます。 参考 静的ファイルアプリの導入と活用例については、 静的ファイ ... ないようにします。 すべてのオプションのリストは、次のコマンドを実行してコマンドのヘルプから参照してください。 /  $ python manage.py collectstatic --help ...\> py manage.py collectstatic --help 無視パターンリストをカスタマイズする デフォルトの無視パター ... -admin findstatic staticfile [staticfile ...] 有効な検索機能を使用して、1つ以上の相対パスを検索します。 例: /  $ python manage.py findstatic css/base.css admin/js/core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /h ... core/static/css/base.css Found 'admin/js/core.js' here: /home/polls.com/src/django/contrib/admin/media/js/core.js ...\> py manage.py findstatic css\base.css admin\js\core.js Found 'css/base.css' here: /home/special.polls.com/core/static/css/base.css /h ...
https://man.mtool.work/django/6.1/ref/contrib/staticfiles.html
Django 0.96 リリースノート 8674
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... t the reference directly on the affected column, so they are not always visible. The effect of this change is that running manage.py reset and similar commands against an existing database may generate SQL with the new form of constraint name, while th ... odifying nonexistent constraints. If you need to work around this, there are two methods available: Redirect the output of manage.py to a file, and edit the generated SQL to use the correct constraint names before executing it. Examine the output of ma ... e the new-style constraint names, and use that as a guide to rename existing constraints in your database. Name changes in manage.py A few of the options to manage.py have changed with the addition of fixture support: There are new dumpdata and loaddat ...
https://man.mtool.work/django/6.1/releases/0.96.html
Django の新しいバージョンへの更新 8428
Django の新しいバージョンへの更新 Upgrading Django to the latest version offers several benefits: New features and improvements become available. バグが修正される。 Older versions of Django eventually stop receiving security updates (see サ ... ョンか PYTHONWARNINGS 環境変数を使って有効化する必要があります。例えば、テスト実行中に警告を表示するには: /  $ python -Wa manage.py test ...\> py -Wa manage.py test Djangoのテストランナーを使っていない場合、廃止予定警告が隠されることのないように、コン ... い環境が設定されたら、 テストスイートを実行します 。テストの出力に表示されるように、廃止予定の警告を有効にすると便利です。 ( manage.py runserver を使用してアプリケーションを手動でテストする場合は、フラグを使用することもできます) /  $ python -Wa manage ... .py test ...\> py -Wa manage.py test テストを実行したら、テストに失敗した点をすべて修正しましょう。リリースノートの内容を心に留めながらコードをリファク ...
https://man.mtool.work/django/6.1/howto/upgrade-version.html
レガシーなデータベースと Django の統合 8073
レガシーなデータベースと Django の統合 Django は新しいアプリケーションを開発するのに最適ですが、レガシーなデータベースと統合することも可能です。Django には、それを自動化するいくつかのユーティリティが含まれています。 このドキュメントは チュー ... 付属しており、既存のデータベースを調査することでモデルを作成できます。次のコマンドを実行すると出力が表示できます。 $ python manage.py inspectdb 通常の Unix 出力のリダイレクトにより、ファイルとして保存します。 $ python manage.py inspectdb > models.py この ... on パッケージの中に配置します。そして、アプリを INSTALLED_APPS の設定に追加します。 デフォルトでは、 inspectdb は未管理 (unmanaged) なモデルを作成します。つまり、モデルの Meta クラス内の managed = False により、Django はテーブルの作成・変更・削除を管理 ... odel ): id = models . IntegerField ( primary_key = True ) first_name = models . CharField ( max_length = 70 ) class Meta : managed = False db_table = "CENSUS_PERSONS" Django にテーブルのライフサイクルの管理を行ってほしい場合、上記の managed オプションを ...
https://man.mtool.work/django/6.1/howto/legacy-databases.html
PREV 1 2 3 4 5 6 7 8 9 NEXT