Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glanzel opened this issue Oct 30, 2024 · 1 comment
Open

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

glanzel opened this issue Oct 30, 2024 · 1 comment

Comments

@glanzel
Copy link

glanzel commented Oct 30, 2024

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 [email protected]: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
@cirospaciari
Copy link
Owner

cirospaciari commented Oct 30, 2024

thanks for reporting will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants