Skip to content

Django - You cannot call this from an async contextΒ #204

@glanzel

Description

@glanzel

Describe the bug
When running a Django App with socketify Djnago says:
You cannot call this from an async context - use a thread or sync_to_async

To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:deparkes/simple-django-app.git
cd simple-django-app/cool_counters
python manage.py migrate
pip install socketify
python3 -m socketify cool_counters.wsgi:application --interface wsgi -w 2

open 127.0.0.1:8000

Expected behavior
See an simple html page with a counter

Screenshots
grafik

Versions:

  • Socketify 0.31
  • django 5.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions