Location | Name | Type | Reference |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Enable PostGIS extension | |
CREATE EXTENSION IF NOT EXISTS postgis; | |
-- Create City table with PostGIS geometry column | |
CREATE TABLE City ( | |
ID SERIAL PRIMARY KEY, | |
name VARCHAR(255) NOT NULL, | |
point GEOMETRY(POINT, 4326) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python : Creating test database for alias 'default'... | |
At line:1 char:1 | |
+ python .\runtests.py gis_tests.geoapp.tests.GeoLookupTest.test_relate ... | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (Creating test d...as 'default'...:String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
E | |
====================================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
crispy = """{% load crispy_forms_field %} | |
{% if field.is_hidden %} | |
{{ field }} | |
{% else %} | |
{% if field|is_checkbox and tag != "td" %} | |
<div class="mb-3{% if 'form-horizontal' in form_class %} row{% endif %}"> | |
{% if label_class %} |
Location | Name | Type | Reference |
---|
Location | Name | Type | Reference |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'PCIDSK' | |
'netCDF' | |
'PDS4' | |
'VICAR' | |
'JP2OpenJPEG' | |
'PDF' | |
'MBTiles' | |
'EEDA' | |
'OGCAPI' | |
'ESRI Shapefile' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(django) PS C:\Users\smith\PycharmProjects\django\tests> python .\runtests.py --shuffle | |
Testing against Django installed in 'c:\users\smith\pycharmprojects\django\django' with up to 8 processes | |
Using shuffle seed: 2714725009 (generated) | |
Found 15614 test(s). | |
Creating test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_bulk_update (postgres_tests.test_bulk_update.BulkSaveTests) [<object object at 0x000002D559D6DFE0>] (model=<class 'postgres_tests.models.HStoreModel'>, field='field') | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "c:\users\smith\pycharmprojects\django\django\db\backends\utils.py", line 89, in _execute | |
return self.cursor.execute(sql, params) | |
psycopg2.ProgrammingError: can't adapt type 'dict' | |
The above exception was the direct cause of the following exception: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 554a7430a2947f67e2316a6775654c66070d75a2 | |
Author: David Smith <[email protected]> | |
Date: Tue Oct 26 15:55:57 2021 +0100 | |
Sample class attribute patch | |
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py | |
index 5bbfcbe41c..a971407d0c 100644 | |
--- a/django/forms/boundfield.py | |
+++ b/django/forms/boundfield.py |
NewerOlder