草庐IT

django-extensions

全部标签

Django channel 和 docker-compose 错误

当通过docker和docker-compose运行runserver时,出现此错误并且无法连接到django:django_1|2017-01-0908:24:44,328-INFO-worker-Listeningonchannelshttp.request,websocket.connect,websocket.disconnect,websocket.receivedjango_1|2017-01-0908:24:44,329-INFO-worker-Listeningonchannelshttp.request,websocket.connect,websocket.disc

Django channel 和 docker-compose 错误

当通过docker和docker-compose运行runserver时,出现此错误并且无法连接到django:django_1|2017-01-0908:24:44,328-INFO-worker-Listeningonchannelshttp.request,websocket.connect,websocket.disconnect,websocket.receivedjango_1|2017-01-0908:24:44,329-INFO-worker-Listeningonchannelshttp.request,websocket.connect,websocket.disc

asp.net-mvc - 更新 nuget 后 StackExchange.Redis.Extensions 错误

我已更新到最新的StackExchange.Redis.Extensions.Core包,但出现以下错误。StackExchange.Redis.Extensions.Core之前的版本是-2.3.0更新后的新版本是-3.4.0Noneoftheconstructorsfoundwith'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'ontype'StackExchange.Redis.Extensions.Core.StackExchangeRedisCacheClient'canbeinvokedwithth

asp.net-mvc - 更新 nuget 后 StackExchange.Redis.Extensions 错误

我已更新到最新的StackExchange.Redis.Extensions.Core包,但出现以下错误。StackExchange.Redis.Extensions.Core之前的版本是-2.3.0更新后的新版本是-3.4.0Noneoftheconstructorsfoundwith'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'ontype'StackExchange.Redis.Extensions.Core.StackExchangeRedisCacheClient'canbeinvokedwithth

django - redis.异常.LockError : Cannot release an unlocked lock after restarting celerybeat

有时在重新启动celerybeat后,我​​会收到以下错误,我已将celerybeat设置为带有redis的服务,sudeservicecelerybeatrestart下面是异常轨迹Traceback(mostrecentcalllast):File"/home/ec2-user/pyenv/local/lib/python3.4/site-packages/celery/beat.py",line484,instarttime.sleep(interval)File"/home/ec2-user/pyenv/local/lib/python3.4/site-packages/cel

django - redis.异常.LockError : Cannot release an unlocked lock after restarting celerybeat

有时在重新启动celerybeat后,我​​会收到以下错误,我已将celerybeat设置为带有redis的服务,sudeservicecelerybeatrestart下面是异常轨迹Traceback(mostrecentcalllast):File"/home/ec2-user/pyenv/local/lib/python3.4/site-packages/celery/beat.py",line484,instarttime.sleep(interval)File"/home/ec2-user/pyenv/local/lib/python3.4/site-packages/cel

django - Nginx、Gunicorn、Django、Celery(Redis) : upstream prematurely closed connection 502 gateway

我在Linux服务器上使用docker-compose运行一个设置。两天前,我在设置中添加了gunicorn+nginx。不幸的是,所有启动celery任务的restapi端点都停止工作(它返回502gatewaynotfound)。当我尝试在启动celery任务的calculateshortestpath上发送帖子表单时,502网关返回。Issue:SummaryURL:http://192.168.0.150:8001/tspweb/calculate_shortest_paths/Status:502BadGatewaySource:NetworkAddress:192.168.

django - Nginx、Gunicorn、Django、Celery(Redis) : upstream prematurely closed connection 502 gateway

我在Linux服务器上使用docker-compose运行一个设置。两天前,我在设置中添加了gunicorn+nginx。不幸的是,所有启动celery任务的restapi端点都停止工作(它返回502gatewaynotfound)。当我尝试在启动celery任务的calculateshortestpath上发送帖子表单时,502网关返回。Issue:SummaryURL:http://192.168.0.150:8001/tspweb/calculate_shortest_paths/Status:502BadGatewaySource:NetworkAddress:192.168.

python - django channels 仅在尝试使用 User_login 时出现连接错误

使用daphne运行channel。djangoversion:2.0.4asgiref==2.2.0asgi-redis==1.4.3channels==2.1.5channels-redis==2.3.1我正在尝试连接websoket。当我尝试连接匿名用户(没有用户登录)时,它运行良好。但是,当有用户时,它就不能很好地工作。我通过使用pdb.set_trace()得到的一点是当我尝试时有self.scope['cookies']['sessionid']与用户登录。但是当没有用户(匿名用户)时,self.scope['cookies']['sessionid']没有结果我认为它可能

python - django channels 仅在尝试使用 User_login 时出现连接错误

使用daphne运行channel。djangoversion:2.0.4asgiref==2.2.0asgi-redis==1.4.3channels==2.1.5channels-redis==2.3.1我正在尝试连接websoket。当我尝试连接匿名用户(没有用户登录)时,它运行良好。但是,当有用户时,它就不能很好地工作。我通过使用pdb.set_trace()得到的一点是当我尝试时有self.scope['cookies']['sessionid']与用户登录。但是当没有用户(匿名用户)时,self.scope['cookies']['sessionid']没有结果我认为它可能