南Django不与mysq合作

2024-03-29 05:17:42 发布

您现在位置:Python中文网/ 问答频道 /正文

Django=1.6.7

毕洪=2.7.8

我不能用安装了south的syncdb。在

如果我指着引擎django.db.后端.sqlite3,如果它工作得很好,但当我切换到mysql时不工作。在

我有它。。。在

我已经安装了Mysql,南方

在设置.py在

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'south',
)

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'bag',
        'HOST' : '127.0.0.1',
        'PASSWORD' : '123',
        'USER' : 'root',
        'PORT' : '3306'
    }
}

^{pr2}$

Tags: appsinstalleddjangopy引擎authdbadmin
1条回答
网友
1楼 · 发布于 2024-03-29 05:17:42

抱歉和感谢Glyn Jackson

and I could solve the problem, the problem was the mysql client used server, used a version appserv as a server.

I tried it on a production server and add tables and properly migration.

相关问题 更多 >