django-realtime-tutorial icon indicating copy to clipboard operation
django-realtime-tutorial copied to clipboard

I want to `re-open` this issue.. i also got same issue..

Open devBuggs opened this issue 3 years ago • 2 comments

I want to re-open this issue.. i also got same issue.. When i login to django admin panel, server raise error, error log -->

2021-09-24 04:28:32,909: Not Found: /favicon.ico 2021-09-24 04:28:32,910: OSError: write error 2021-09-24 14:47:46,933: Not Found: /favicon.ico 2021-09-24 14:48:35,122: Internal Server Error: /admin/ Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/home/yourcourse/yourcourse/accounts/middlewares.py", line 12, in call Session.objects.get(session_key = stored_session_key).delete() File "/usr/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get raise self.model.DoesNotExist( django.contrib.sessions.models.Session.DoesNotExist: Session matching query does not exist.

I have created a copy of django session in database and added a OneSessionPerUserMiddleware.. sometimes it works fine but sometimes 🤯..

Originally posted by @devBuggs in https://github.com/mburst/django-realtime-tutorial/issues/4#issuecomment-926707061

devBuggs avatar Sep 24 '21 15:09 devBuggs

Sorry, wrong place i created the issue...

devBuggs avatar Sep 24 '21 15:09 devBuggs

Unfortunately this code is pretty old and quite out of date. Thus, I'm not able to support it as much as I'd like to. I'd recommend looking in to Django Channels https://channels.readthedocs.io/en/stable/ if you want to do realtime stuff with Django these days

mburst avatar Oct 03 '21 00:10 mburst