markfinger / python-react

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

Type Error #34

Closed m-xubair closed 9 years ago

m-xubair commented 9 years ago

Hi Mark, Just clone this repo and I am getting a type error as follwoing for both "translate and bundle":

render_component() got an unexpected keyword argument 'translate'

What I am doing wrong :(

markfinger commented 9 years ago

If you installed from PyPI, the codebase will have some features missing. The docs at https://github.com/markfinger/django-react/tree/0.10.0 will give you a clearer idea of the API.

If you pull straight from the repo, it should be fine.

If the following produces an import error, you're probably running v0.10

from django_react.bundle import bundle_component

I'll push a new stable release sometime today or tomorrow.