uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

Add configuration of pypy3 + Django2.x

Open gralance opened this issue 6 years ago • 4 comments

gralance avatar Mar 16 '19 12:03 gralance

@gralance Can this be used with a virtual environment created with pypy3 -m venv my_venv?

I am getting the error:

    from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'

I only have Django installed into my venv.

johnthagen avatar May 06 '19 16:05 johnthagen

To use a venv (e.g. created from pypy3 -m venv venv):

$ PYTHONPATH=/<project dir>/venv/site-packages uwsgi --ini nginx/uwsgi_pypy3.ini

See https://github.com/unbit/uwsgi/issues/869#issuecomment-489699865

johnthagen avatar May 06 '19 17:05 johnthagen

@gralance FYI, your forked pypy_setup.py is probably not compatible with Python 3.7. See: https://github.com/operasoftware/uwsgi-pypy-python3/issues/1

johnthagen avatar May 06 '19 17:05 johnthagen

You might be interested in my cffi-heavy rewrite of the pypy plugin. https://github.com/dholth/uwsgi

dholth avatar Dec 07 '20 21:12 dholth