File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,14 @@ option. This option allows you to specify a custom function for this purpose.
106
106
.. warning ::
107
107
108
108
If using Docker the following will set your `INTERNAL_IPS ` correctly only if you are in Debug mode.::
109
-
109
+
110
110
if DEBUG:
111
111
import os # only if you haven't already imported this
112
112
import socket # only if you haven't already imported this
113
113
hostname, _, ips = socker.gethostbyname_ex(socket.gethostname())
114
114
INTERNAL_IPS = [ip[:-1] + '1' for ip in ips] + ['127.0.0.1', '10.0.2.2']
115
-
116
-
115
+
116
+
117
117
Troubleshooting
118
118
---------------
119
119
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ def test_sql_explain_checks_show_toolbar(self):
299
299
@unittest .skipUnless (settings .USE_GIS , "Test only valid with gis support" )
300
300
def test_sql_explain_gis (self ):
301
301
from django .contrib .gis .geos import GEOSGeometry
302
+
302
303
from .models import Location
303
304
304
305
db_table = Location ._meta .db_table
You can’t perform that action at this time.
0 commit comments