Django 3.1.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, **kwargs) DiscoverRunner will search for tests in any file matching pattern. top_level can names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. Django may, from time to time, extend the so that the test command will be able to use those arguments. The pdb argument was added. The buffer argument was added. Attributes DiscoverRunner.test_suite The class used to build the test suite0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django CMS 3.11.10 Documentation-> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django 3.0.x Documentation""" def write(self, value): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view(request): """A view that streams a large rows = (["Row {}".format(idx), str(idx)] for idx in range(65536)) pseudo_buffer = Echo() writer = csv.writer(pseudo_buffer) response = StreamingHttpResponse((writer.writerow(row) for row in rows) some_view(request): # Create a file-like buffer to receive PDF data. buffer = io.BytesIO() # Create the PDF object, using the buffer as its "file." p = canvas.Canvas(buffer) # Draw things on the PDF0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 4.0.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, shuffle=False, logger=None, **kwargs) DiscoverRunner names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler interface. """ def write(self, value): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view(request): """A view that streams a large CSV file0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, **kwargs) DiscoverRunner will search for tests in names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler add_argument() inside the method, so that the test command will be able to use those arguments. The buffer argument was added. The enable_faulthandler and timing arguments were added. Attributes DiscoverRunner0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 3.1.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, **kwargs) DiscoverRunner will search for tests in any file matching pattern. top_level can names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. Django may, from time to time, extend the Testing in Django 375 Django Documentation, Release 3.1.15.dev The pdb argument was added. The buffer argument was added. Attributes DiscoverRunner.test_suite The class used to build the test suite0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 4.0.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, shuffle=False, logger=None, **kwargs) DiscoverRunner names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler """ def write(self, value): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view(request): """A view that streams a large0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.2.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, **kwargs) DiscoverRunner will search for tests in names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler add_argument() inside the method, so that the test command will be able to use those arguments. The buffer argument was added. The enable_faulthandler and timing arguments were added. Attributes DiscoverRunner0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 4.1.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, shuffle=False, logger=None, **kwargs) DiscoverRunner names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler """ def write(self, value): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view(request): """A view that streams a large0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.2.x Documentationdebug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=True, shuffle=False, logger=None, **kwargs) DiscoverRunner names. If pdb is True, a debugger (pdb or ipdb) will be spawned at each test error or failure. If buffer is True, outputs from passing tests will be discarded. If enable_faulthandler is True, faulthandler def write(self, value): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view(request): """A view that streams a large0 码力 | 3305 页 | 3.16 MB | 1 年前3
共 31 条
- 1
- 2
- 3
- 4













