markfinger / python-react

Server-side rendering of React components
MIT License
1.62k stars 116 forks source link

Python 3 compatibility #6

Closed markfinger closed 9 years ago

markfinger commented 9 years ago

Re: markfinger/django-node#3

markfinger commented 9 years ago

Re: markfinger/django-webpack#1

markfinger commented 9 years ago

Fixed.

One caveat to be aware of is that one of django-webpack's dependencies requires Python 2.x. NPM will still complete, and the system appears to function as expected, but NPM will spew out a bunch of errors during the installation process. This mostly relates to the node-gyp package.

You can fix this by adding a path to a Python 2 interpreter to your settings...

DJANGO_NODE = {
    'NPM_INSTALL_PATH_TO_PYTHON': '/path/to/python2',
}