Drawbacks to running Django under PyPy?

jl6 picture jl6 · May 2, 2013 · Viewed 20.3k times · Source

I understand that Django, PyPy, and Psycopg2 all work correctly together, and speed.pypy.org claims great performance improvements over CPython. Are there any downsides?

Answer

Thomas picture Thomas · May 2, 2013
  1. Library support. Not all libraries are compatible with PyPy.

    Your best bet is to actually try running pypy manage.py test and see if it breaks. Then you know which dependencies need to be brought into line.

    http://reinout.vanrees.org/weblog/2011/06/06/django-and-pypy.html

  2. Webservers

    You can't use pypy with Apache. You need to use a pure-python webserver + nginx. You MAY get it working on uwsgi.