mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Removed unnecessary code-block directives.
This commit is contained in:
parent
fa02120d36
commit
9d6551204e
32 changed files with 161 additions and 308 deletions
|
@ -2567,9 +2567,7 @@ Adding a password-reset feature
|
|||
-------------------------------
|
||||
|
||||
You can add a password-reset feature to the admin site by adding a few lines to
|
||||
your URLconf. Specifically, add these four patterns:
|
||||
|
||||
.. code-block:: python
|
||||
your URLconf. Specifically, add these four patterns::
|
||||
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
|
|
|
@ -149,9 +149,7 @@ If using a binary package of GEOS (e.g., on Ubuntu), you may need to :ref:`binut
|
|||
If your GEOS library is in a non-standard location, or you don't want to
|
||||
modify the system's library path then the :setting:`GEOS_LIBRARY_PATH`
|
||||
setting may be added to your Django settings file with the full path to the
|
||||
GEOS C library. For example:
|
||||
|
||||
.. code-block:: python
|
||||
GEOS C library. For example::
|
||||
|
||||
GEOS_LIBRARY_PATH = '/home/bob/local/lib/libgeos_c.so'
|
||||
|
||||
|
@ -237,7 +235,7 @@ Can't find GDAL library
|
|||
When GeoDjango can't find the GDAL library, the ``HAS_GDAL`` flag
|
||||
will be false:
|
||||
|
||||
.. code-block:: python
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> from django.contrib.gis import gdal
|
||||
>>> gdal.HAS_GDAL
|
||||
|
@ -254,9 +252,7 @@ The solution is to properly configure your :ref:`libsettings` *or* set
|
|||
If your GDAL library is in a non-standard location, or you don't want to
|
||||
modify the system's library path then the :setting:`GDAL_LIBRARY_PATH`
|
||||
setting may be added to your Django settings file with the full path to
|
||||
the GDAL library. For example:
|
||||
|
||||
.. code-block:: python
|
||||
the GDAL library. For example::
|
||||
|
||||
GDAL_LIBRARY_PATH = '/home/sue/local/lib/libgdal.so'
|
||||
|
||||
|
|
|
@ -180,9 +180,7 @@ location available in your ``PATH``. For example::
|
|||
$ sudo cp spatialite /Library/Frameworks/SQLite3.framework/Programs
|
||||
|
||||
Finally, for GeoDjango to be able to find the KyngChaos SpatiaLite library,
|
||||
add the following to your ``settings.py``:
|
||||
|
||||
.. code-block:: python
|
||||
add the following to your ``settings.py``::
|
||||
|
||||
SPATIALITE_LIBRARY_PATH='/Library/Frameworks/SQLite3.framework/SQLite3'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue