Django Postgresql中的数据不保存

Django Postgresql中的数据不保存,django,postgresql,ubuntu,ubuntu-16.04,Django,Postgresql,Ubuntu,Ubuntu 16.04,Ubuntu 16.04,Postgres 9.5,django==1.10.7 django项目中的数据不保存在数据库中 我可以充分利用这个应用程序。但是数据没有被保存 迁移正在运行,createsuperuser也在运行,但数据无法保存。在本地开发中,所有的工作都很好,但在生产中没有 在postgresql-9.5-main.log中可以看到: 2017-06-16 18:26:42 MSK [1026-2] LOG: received fast shutdown request 2017

Ubuntu 16.04,Postgres 9.5,django==1.10.7

django项目中的数据不保存在数据库中

我可以充分利用这个应用程序。但是数据没有被保存

迁移正在运行,createsuperuser也在运行,但数据无法保存。在本地开发中,所有的工作都很好,但在生产中没有

在postgresql-9.5-main.log中可以看到:

2017-06-16 18:26:42 MSK [1026-2] LOG:  received fast shutdown request
2017-06-16 18:26:42 MSK [1026-3] LOG:  aborting any active transactions
2017-06-16 18:26:42 MSK [1040-2] LOG:  autovacuum launcher shutting down
2017-06-16 18:26:42 MSK [1037-1] LOG:  shutting down
2017-06-16 18:26:42 MSK [1037-2] LOG:  database system is shut down
2017-06-16 18:26:57 MSK [1056-1] LOG:  database system was shut down at 2017-06-16 18:26:42 MSK
2017-06-16 18:26:57 MSK [1056-2] LOG:  MultiXact member wraparound protections are now enabled
2017-06-16 18:26:57 MSK [1038-1] LOG:  database system is ready to accept connections
2017-06-16 18:26:57 MSK [1061-1] LOG:  autovacuum launcher started
2017-06-16 18:26:57 MSK [1273-1] [unknown]@[unknown] LOG:  incomplete startup packet
2017-06-16 21:35:42 MSK [5836-1] user@user LOG:  could not receive data from client: Connection reset by peer
2017-06-17 17:37:27 MSK [26684-1] user@user LOG:  could not receive data from client: Connection reset by peer
2017-06-17 17:37:27 MSK [26678-1] user@user LOG:  could not receive data from client: Connection reset by peer
2017-06-17 17:37:27 MSK [26676-1] user@user LOG:  could not receive data from client: Connection reset by peer

请帮帮我。我真的需要帮助。我能独立地理解。我在谷歌上读了5页。

在多次尝试找出问题的原因、重新安装postgresql和日期转储的实验,甚至重新安装操作系统,并重新部署完整的应用程序之后,我找到了故障的原因

整个问题在于我的nginx配置包含以下行:

proxy_cache_methods GET HEAD POST;
此指令缓存的是POST请求:

proxy_cache_valid 200 302 1m;

. 请参阅和,然后回来和您的帖子,添加我们可以使用的细节,并提出一个实际的具体问题。由于您声称本地开发工作正常,并且是生产中唯一的问题,可能的问题可能是您的生产数据库
自动提交
模式已关闭。@IndikaRajapaksha,否,自动提交错误,没有帮助我发布使用和保存数据的代码。