Used relative models imports in the GIS tutorial.
This commit is contained in:
parent
928c12eb1a
commit
bb7042cdab
|
@ -435,7 +435,7 @@ with the following code::
|
|||
|
||||
import os
|
||||
from django.contrib.gis.utils import LayerMapping
|
||||
from models import WorldBorder
|
||||
from .models import WorldBorder
|
||||
|
||||
world_mapping = {
|
||||
'fips' : 'FIPS',
|
||||
|
@ -704,7 +704,7 @@ Let's dive right in. Create a file called ``admin.py`` inside the
|
|||
``world`` application with the following code::
|
||||
|
||||
from django.contrib.gis import admin
|
||||
from models import WorldBorder
|
||||
from .models import WorldBorder
|
||||
|
||||
admin.site.register(WorldBorder, admin.GeoModelAdmin)
|
||||
|
||||
|
|
Loading…
Reference in New Issue