Skip to content

Extend instead of Fork #22

@gavindsouza

Description

@gavindsouza

As mentioned in the README, this app relies on forking Frappe to get stuff to work. I would suggest doing so by using the Dynamic Pages functionality instead (ref: https://frappeframework.com/docs/v13/user/en/guides/portal-development/context)

You can create a file v1.py and a corresponding base template file v1.html to handle all requests to /v1. The HTML file may be empty.

You can add something that looks like the following under restpie/www/v1.py:

from restipie.restipie import request_handler

def get_context(context):
    return request_handler(context)

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