Skip to content

Refactor render-engine init to use internal code and templates and deprecate the cookiecutter. #45

Open

Description

@brass75

The current implementation of render-engine init uses cookiecutter which means that any changes we want to make need to be done in multiple places. We should update render-engine init to build the site from Jinja2 templates and code maintained as part of this repository. The output of running render-engine init should be a fully operational Render Engine site with a basic index.html that congratulates the user on setting up their site.

Activity

  1. added
    Djangonauts
    on Oct 6, 2026
  2. tystar86 commented on Oct 27, 2026

    @tystar86
    Contributor

    @brass75 Can you assign me? I would do it after I update the docs. And then update the docs again. :)

  3. brass75 commented on Oct 27, 2026

    @brass75
    MemberAuthor

    @tystar86 assigned to you. Feel free to do this and then the docs if you want.

  4. tystar86 commented on Nov 9, 2026

    @tystar86
    Contributor
    • Update pyproject.toml > tool., module: fff.py
    • Generated unused import
    • app.py change doesn't work
    • GH actions?
  5. brass75 commented on Nov 9, 2026

    @brass75
    MemberAuthor

    Having given this some thought, the actual initialization should be in the render-engine repo and not the CLI. In other words, render-engine should add a new API that does the initialization and the CLI command should just call that API.

    My reasoning for this is that there might be reasons that we want to update how the initialization works, which are most likely going to be connected to the engine and not the CLI, and we do not want to have multiple releases required for this. Essentially the CLI should not need to have any engine level business logic, it just needs to know what to call in the engine. The only logic it should really need is to run the local server for testing.

    Essentially, the engine should get a new module named init that is runnable (has a __main__.py) such that calling uvx --from render-engine init and uvx --from render-engine-cli render-engine init are equivalent commands.

    With all of this, any work that has been done already should be able to be ported to create that new API so we wouldn't need to reinvent the wheel.

  6. added
    triaged
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Djangonautstriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions