Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在django 1.8中使用红移_Python_Django_Python 3.x_Amazon Redshift - Fatal编程技术网

Python 在django 1.8中使用红移

Python 在django 1.8中使用红移,python,django,python-3.x,amazon-redshift,Python,Django,Python 3.x,Amazon Redshift,我想从django连接到我的红移数据库。更改settings.py后,我出现以下错误: django.db.utils.NotSupportedError: Column "django_migrations.id" has unsupported type "serial". 我在谷歌上搜索了一下,发现它更聪明了: 如果我是对的,用django从/到红移读取/写入数据实际上是不可能的?如果可能的话,最好的办法是什么 多谢各位 ps:我可以使用psycopg2连接到我的红移数据库。但是我想用

我想从django连接到我的红移数据库。更改settings.py后,我出现以下错误:

django.db.utils.NotSupportedError: Column "django_migrations.id" has unsupported type "serial".
我在谷歌上搜索了一下,发现它更聪明了:

如果我是对的,用django从/到红移读取/写入数据实际上是不可能的?如果可能的话,最好的办法是什么

多谢各位

ps:我可以使用psycopg2连接到我的红移数据库。但是我想用django来做,所以我不需要重写设置中使用数据库的所有代码