Django Q Documentation
Release 0.7.18schedule_type=Schedule.MINUTES, minutes=5, repeats=24, next_run=arrow.utcnow().replace(hour=18, minute=0)) Missed schedules If your cluster has not run for a while, the default behavior for the0 码力 | 73 页 | 516.84 KB | 1 年前3
Django Q Documentation
Release 0.7.18cached=10) # wait max 50ms for the result to appear in the cache result(id, wait=50, cached=True) 18 Chapter 1. Features Django Q Documentation, Release 0.7.18 # or fetch the task object task = fetch(id 3, 4, schedule_type=Schedule.MINUTES, minutes=5, repeats=24, next_run=arrow.utcnow().replace(hour=18, minute=0)) 1.8.2 Missed schedules If your cluster has not run for a while, the default behavior0 码力 | 56 页 | 418.08 KB | 1 年前3
Django 1.11.x DocumentationDjango Committing code Mailing lists django-users django-core-mentorship django-developers django-i18n django-announce django-updates Organization of the Django Project Principles Core team Technical a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1671,6 +1671,18 @@ class FormsTestCase(SimpleTestCase): self.assertEqual(p.cleaned_data['last_name'], 'Lennon') s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 SessionStore.create()0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 1.11.x DocumentationURLconf module is loaded. They’re super fast (as long as the lookups aren’t too complex as noted above). 18 Chapter 2. Getting started Django Documentation, Release 1.11.30.dev20200305075726 url() argument: a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1671,6 +1671,18 @@ class FormsTestCase(SimpleTestCase): self.assertEqual(p.cleaned_data['last_name'], 'Lennon') self s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 SessionStore.create()0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 2.2.x Documentationdocumentation Localizing Django Committing code Mailing lists django-users django-developers django-i18n django-announce django-updates Organization of the Django Project Principles Mergers Releasers s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 SessionStore.create() >>> from django.contrib.sessions.models import Session >>> s = Session.objects.get(pk='2b1189a188b44ad18c35e113ac6ceead') >>> s.expire_date datetime.datetime(2005, 8, 20, 13, 35, 12) Note that you’ll need0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 2.1.x Documentationany “captured” values from the route as keyword arguments. We’ll give an example of this in a bit. 18 Chapter 2. Getting started Django Documentation, Release 2.1.16.dev20191202082911 path() argument: latest 5 poll questions in the system, separated by commas, according to publication date: Listing 18: polls/views.py from django.http import HttpResponse from .models import Question def index(request): s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 222 Chapter 3. Using0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 2.1.x DocumentationDjango Committing code Mailing lists django-users django-core-mentorship django-developers django-i18n django-announce django-updates Organization of the Django Project Principles Core team Technical s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 SessionStore.create() >>> from django.contrib.sessions.models import Session >>> s = Session.objects.get(pk='2b1189a188b44ad18c35e113ac6ceead') >>> s.expire_date datetime.datetime(2005, 8, 20, 13, 35, 12) Note that you’ll need0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.0.x DocumentationWriting your first Django app, part 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.5 Writing your first Django app, part 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . create your first model, and get a quick introduction to Django’s automatically-generated admin site. 18 Chapter 2. Getting started Django Documentation, Release 2.0.14.dev20190701080343 2.4.1 Database a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1671,6 +1671,18 @@ class FormsTestCase(SimpleTestCase): self.assertEqual(p.cleaned_data['last_name'], 'Lennon') self0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 2.0.x DocumentationDjango Committing code Mailing lists django-users django-core-mentorship django-developers django-i18n django-announce django-updates Organization of the Django Project Principles Core team Technical a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -1671,6 +1671,18 @@ class FormsTestCase(SimpleTestCase): self.assertEqual(p.cleaned_data['last_name'], 'Lennon') s['last_login'] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead') >>> s['last_login'] 1376587691 SessionStore.create()0 码力 | 2746 页 | 2.67 MB | 1 年前3
Django 4.2.x Documentations["last_login"] = 1376587691 >>> s.create() >>> s.session_key '2b1189a188b44ad18c35e113ac6ceead' >>> s = SessionStore(session_key="2b1189a188b44ad18c35e113ac6ceead") >>> s["last_login"] 1376587691 SessionStore.create() >>> from django.contrib.sessions.models import Session >>> s = Session.objects.get(pk="2b1189a188b44ad18c35e113ac6ceead") >>> s.expire_date datetime.datetime(2005, 8, 20, 13, 35, 12) Note that you’ll need never_cache() decorator). See the using other headers section for more on these decorators. If USE_I18N is set to True then the generated cache key will include the name of the active language – see also0 码力 | 3305 页 | 3.16 MB | 1 年前3
共 90 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













