我尝试使用Djangowith Geodjango,我遵循了所有文档步骤,但在尝试进行迁移时仍然遇到此错误:
OSError: [WinError 127] : The specified procedure could not be found
Run Code Online (Sandbox Code Playgroud)
这models.py是正确的,我正在从网站使用geodjango,这是我的settings.py
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'ci3qd6ti+d+#-4pae7d*)^8nmmgb2j@cacivgt8rdvsngu2$mj'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# …Run Code Online (Sandbox Code Playgroud)