Results of 11 - 20 of about 29 for polls (0.048 sec.)
- FAQ: データベースとモデル — Django 4.0.6 ドキュメント 8174
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nnection >>> connection . queries [{'sql': 'SELECT polls_polls.id, polls_polls.question, polls_polls.pub_da ...
te FROM polls_polls', 'time': '0.002'}] connection.queries は DE ...
-
https://man.plustar.jp/django/faq/models.html
- [similar]
- Django 1.9 リリースノート — Django 4.0.6 ドキュメント 8059
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
I ), you must specify the app config's path, e.g. 'polls.apps.PollsConfig' , in INSTALLED_APPS for it to be ...
used (instead of just 'polls' ). When using the PostgreSQL backend, the dbshell ...
the namespace argument to include() . For example: polls_patterns = [ url ( ... ), ] urlpatterns = [ url ( ...
r '^polls/' , include (( polls_patterns , 'polls' , 'author- ...
-
https://man.plustar.jp/django/releases/1.9.html
- [similar]
- はじめての Django アプリ作成、その 7 — Django 4.0.6 ドキュメント 7896
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
estion) の行を以下のように置き換えてみてください。 polls/admin.py ¶ from django.contrib import admin from . ...
数のフィールドセットに分割したいこともあるでしょう。 polls/admin.py ¶ from django.contrib import admin from . ...
n``と同じようにadminに``Choice を登録する方法です: polls/admin.py ¶ from django.contrib import admin from . ...
n の登録する部分を以下のように書き換えてください。 polls/admin.py ¶ from django.contrib import admin from . ...
-
https://man.plustar.jp/django/intro/tutorial07.html
- [similar]
- How to create custom django-admin commands — Django 4.0.6 ドキュメント 7276
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
このドキュメントでは、 このチュートリアル で作成した polls アプリケーションに独自の closepoll コマンドを追加し ...
ールすべてを``manage.py``コマンドに登録します。 例: polls / __init__ . py models . py management / __init__ ...
. py views . py この例では、 closepoll コマンドは polls アプリケーションを INSTALLED_APPS に含むプロジェク ...
理する場合に特に有用です。 コマンドを実装するには、 polls/management/commands/closepoll.py を以下のように編集 ...
-
https://man.plustar.jp/django/howto/custom-management-commands.html
- [similar]
- Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 7146
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
渡します。リダイレクト先の例: /accounts/login/?next=/polls/3/ もしユーザがログインしていれば、通常通りビューを ...
import permission_required @permission_required ( 'polls.add_choice' ) def my_view ( request ): ... Just li ...
the form "<app label>.<permission codename>" (i.e. polls.add_choice for a permission on a model in the poll ...
import permission_required @permission_required ( 'polls.add_choice' , login_url = '/loginpage/' ) def my_v ...
-
https://man.plustar.jp/django/topics/auth/default.html
- [similar]
- 設定 — Django 4.0.6 ドキュメント 6950
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
があります。例: STATICFILES_DIRS = [ "/home/special.polls.com/polls/static" , "/home/polls.com/polls/static" ...
ou to refer to the local file '/opt/webfiles/stats/polls_20101022.tar.gz' with '/static/downloads/polls_201 ...
templates, e.g.: < a href = " {% static 'downloads/polls_20101022.tar.gz' %} " > STATICFILES_STORAGE ¶ デフ ...
-
https://man.plustar.jp/django/ref/settings.html
- [similar]
- The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 6950
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e, for this setting: INSTALLED_APPS = [ 'myproject.polls' , 'myproject.music' ] ...then get_template('foo.h ...
ese directories, in this order: /path/to/myproject/polls/templates/ /path/to/myproject/music/templates/ ... ...
, with your own admin/base_site.html in myproject.polls . You must then make sure that your myproject.poll ...
-
https://man.plustar.jp/django/ref/templates/api.html
- [similar]
- Django 1.8 リリースノート — Django 4.0.6 ドキュメント 6950
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
_meta . get_all_related_objects () [<ManyToOneRel: polls.choice>] >>> p . _meta . get_all_related_objects ( ...
)[ 0 ] . model <class 'polls.models.Poll'> >>> p . _meta . get_all_related_obje ...
cts ()[ 0 ] . related_model <class 'polls.models.Choice'> and compare it to the behavior on ...
meta . get_all_related_objects () [<RelatedObject: polls:choice related to poll>] >>> p . _meta . get_all_r ...
-
https://man.plustar.jp/django/releases/1.8.html
- [similar]
- ビューを記述する — Django 4.0.6 ドキュメント 6901
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
t Http404 from django.shortcuts import render from polls.models import Poll def detail ( request , poll_id ...
"Poll does not exist" ) return render ( request , 'polls/detail.html' , { 'poll' : p }) Django が 404 を返し ...
-
https://man.plustar.jp/django/topics/http/views.html
- [similar]
- Model Meta options — Django 4.0.6 ドキュメント 6868
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
the object, returns app_label.object_name , e.g. 'polls.Question' . label_lower ¶ Options. label_lower ¶ R ...
of the model, returns app_label.model_name , e.g. 'polls.question' . 目次 Model Meta options Available Meta ...
-
https://man.plustar.jp/django/ref/models/options.html
- [similar]