Fixed some code blocks indentation in GIS docs.
This commit is contained in:
parent
b1afebf882
commit
dbaa1a6b59
|
@ -31,9 +31,9 @@ API Reference
|
||||||
base class, GeoDjango's ``Feed`` class provides
|
base class, GeoDjango's ``Feed`` class provides
|
||||||
the following overrides. Note that these overrides may be done in multiple ways::
|
the following overrides. Note that these overrides may be done in multiple ways::
|
||||||
|
|
||||||
from django.contrib.gis.feeds import Feed
|
from django.contrib.gis.feeds import Feed
|
||||||
|
|
||||||
class MyFeed(Feed):
|
class MyFeed(Feed):
|
||||||
|
|
||||||
# First, as a class attribute.
|
# First, as a class attribute.
|
||||||
geometry = ...
|
geometry = ...
|
||||||
|
|
|
@ -103,11 +103,11 @@ in :mod:`django.contrib.gis`::
|
||||||
'NAME': 'geodjango',
|
'NAME': 'geodjango',
|
||||||
'USER': 'geodjango',
|
'USER': 'geodjango',
|
||||||
},
|
},
|
||||||
'other': {
|
'other': {
|
||||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
'NAME': 'other',
|
'NAME': 'other',
|
||||||
'USER': 'geodjango',
|
'USER': 'geodjango',
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
SECRET_KEY = 'django_tests_secret_key'
|
SECRET_KEY = 'django_tests_secret_key'
|
||||||
|
|
|
@ -81,7 +81,7 @@ file. Edit the database connection settings to match your setup::
|
||||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||||
'NAME': 'geodjango',
|
'NAME': 'geodjango',
|
||||||
'USER': 'geo',
|
'USER': 'geo',
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
In addition, modify the :setting:`INSTALLED_APPS` setting to include
|
In addition, modify the :setting:`INSTALLED_APPS` setting to include
|
||||||
|
@ -96,7 +96,7 @@ and ``world`` (your newly created application)::
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'django.contrib.gis',
|
'django.contrib.gis',
|
||||||
'world'
|
'world',
|
||||||
]
|
]
|
||||||
|
|
||||||
Geographic Data
|
Geographic Data
|
||||||
|
|
Loading…
Reference in New Issue