[Fixed]-From models import WorldBorder ImportError: No module named 'models'


In load.py, change this line:

from models import WorldBorder # shoudn't it be WorldBorders with an s?


# Assuming your appname is called 'world' and your 
# WorldBorders class is in world/models.py
from world.models import WorldBorders 

The line above may change depending on what your Application Name is. If your application name is “world”, then it should work. If you application name is “ApplicationName”, then do this:

from ApplicationName.models import WorldBorders

Edit: Based on your file structure, I think your application might be called “geodjango” so maybe try:

from geodjango.models import WorldBorders

Leave a comment