Django Q Documentation
Release 0.7.1416:44:13 [Q] INFO Process-1:8 stopped doing work 16:44:13 [Q] INFO Process-1:2 stopped doing work 16:44:14 [Q] INFO Process-1:9 stopped monitoring results 16:44:15 [Q] INFO Q Cluster-31781 has stopped. The0 码力 | 73 页 | 527.40 KB | 1 年前3
Django Q Documentation
Release 0.7.14Broker enqueue(task) Sends a task package to the broker queue and returns a tracking id if available. 14 Chapter 1. Features Django Q Documentation, Release 0.7.14 dequeue() Gets packages from the broker 16:44:13 [Q] INFO Process-1:8 stopped doing work 16:44:13 [Q] INFO Process-1:2 stopped doing work 16:44:14 [Q] INFO Process-1:9 stopped monitoring results 16:44:15 [Q] INFO Q Cluster-31781 has stopped. The 28 async_iter() (in module django_q), 26 B broker (Async attribute), 22 Broker (built-in class), 14 brokers.get_broker() (built-in function), 15 C cached (Async attribute), 22 Chain (class in django_q)0 码力 | 56 页 | 415.72 KB | 1 年前3
Django 5.1 Documentationthe following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited and 7 >>> Blog.objects.filter(pk__in=[1, 4, 7]) # Get all blog entries with id > 14 >>> Blog.objects.filter(pk__gt=14) pk lookups also work across joins. For example, these three statements are equivalent:0 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 Documentationthe following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited and 7 >>> Blog.objects.filter(pk__in=[1, 4, 7]) # Get all blog entries with id > 14 >>> Blog.objects.filter(pk__gt=14) pk lookups also work across joins. For example, these three statements are equivalent:0 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 5.0.x Documentationthe following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited and 7 >>> Blog.objects.filter(pk__in=[1, 4, 7]) # Get all blog entries with id > 14 >>> Blog.objects.filter(pk__gt=14) pk lookups also work across joins. For example, these three statements are equivalent:0 码力 | 3407 页 | 3.21 MB | 1 年前3
Django 2.1.x Documentationdirectory outside of the document root, such as /home/mycode. Let’s look at what startproject created: 14 Chapter 2. Getting started Django Documentation, Release 2.1.16.dev20191202082911 mysite/ manage Note these are normal Python methods. Let’s add a custom method, just for demonstration: Listing 14: polls/models.py import datetime from django.db import models from django.utils import timezone the following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 2.1.x Documentationthe following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited 4 and 7 >>> Blog.objects.filter(pk__in=[1,4,7]) # Get all blog entries with id > 14 >>> Blog.objects.filter(pk__gt=14) pk lookups also work across joins. For example, these three statements are equivalent:0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 1.11.x Documentationdirectory outside of the document root, such as /home/mycode. Let’s look at what startproject created: 14 Chapter 2. Getting started Django Documentation, Release 1.11.30.dev20200305075726 mysite/ manage the following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 2.0.x Documentationstartproject created: mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py These files are: 14 Chapter 2. Getting started Django Documentation, Release 2.0.14.dev20190701080343 • The outer mysite/ the following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups are the statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 1.11.x Documentationthe following two statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied This is for convenience, because exact lookups statements are equivalent: >>> Blog.objects.get(id__exact=14) # Explicit form >>> Blog.objects.get(id=14) # __exact is implied >>> Blog.objects.get(pk=14) # pk implies id__exact The use of pk isn’t limited 4 and 7 >>> Blog.objects.filter(pk__in=[1,4,7]) # Get all blog entries with id > 14 >>> Blog.objects.filter(pk__gt=14) pk lookups also work across joins. For example, these three statements are equivalent:0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 84 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













