Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Web2Py support: ImportError('No module named react.render',) #70

Copy link
Copy link
Closed
@Anima-t3d

Description

@Anima-t3d
Issue body actions

Does this work with Web2Py? I am relatively new to python and Web2Py. I want to implement react server side rendering in an existing Web2Py application.

I tried the following on a local instance:
pip install react and created modules/react_test.py:

from react.render import render_component

def test_render(url):
    return render_component('../react/Url.jsx', {'arg': url})

It will give an error ImportError('No module named react.render',).
Did I do something wrong or is it because I am trying to use python-react with Web2Py?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.