简体   繁体   English

我无法在我的 Django 项目中迁移

[英]I am unable to migrate in my django project

I have connected my django project with mysql database and i have configured all my settings(settings.py), but when migrate ,it shows the error.我已经将我的 django 项目与 mysql 数据库连接起来,并且我已经配置了我的所有设置(settings.py),但是当 migrate 时,它​​显示了错误。

源代码

In your database description you have defined your database as ' localhost' not 'localhost'.在您的数据库描述中,您已将数据库定义为 'localhost' 而不是 'localhost'。 Django will not fix the whitespace for you in the settings file. Django 不会在设置文件中为您修复空格。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当其他文件在 Heroku 中使用我的模型时,为什么我无法迁移? - Why am I unable to migrate when other files use my models in Heroku? 我无法在 Django Rest 框架中序列化我的产品图片 - I am unable to serialize my product images in Django Rest Framework 我无法在我的 django 模板中进行圆形切换 - I am unable to get round toggle in my django template 我的Django项目中出现模块错误 - I am getting a module error in my django project 无法迁移Django模型 - Unable to migrate Django models 我试图将Django应用程序与Mysql数据库连接,但是当我尝试迁移错误负载时,该错误开始在终端中弹出。 - I am trying to connect my Django app with Mysql database but when I tried to migrate loads of error started to pop up in the terminal. 如何将远程 postgres db 迁移到我的本地 django 项目中? - How to migrate remote postgres db into my local django project? 我现在在项目的应用程序中创建了用户,如何将其迁移到实际的django管理员“用户”? - I created users in my project's app now how can i migrate them to actually django admin 'Users'? 我正在尝试迁移我的模型 - 但它给了我错误 - - I am trying to migrate my model - but it's giving me error - 如何在整个 django 项目中更改 django_spanner 应用程序的行为? 当我在我的 django 应用程序中使用 2 个数据库时 - How to change the behaviour of django_spanner application on entire django project? As I am using 2 databases inside my django application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM