You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor render-engine init to use internal code and templates and deprecate the cookiecutter. #45
DjangonautsThis issue is reserved to be work on by DjangonautstriagedThis label indicates that a maintainer has triaged the issue and it is ready to be worked.
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.
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.
DjangonautsThis issue is reserved to be work on by DjangonautstriagedThis label indicates that a maintainer has triaged the issue and it is ready to be worked.
Activity
tystar86 commentedon Oct 27, 2026
@brass75 Can you assign me? I would do it after I update the docs. And then update the docs again. :)
brass75 commentedon Oct 27, 2026
@tystar86 assigned to you. Feel free to do this and then the docs if you want.
tystar86 commentedon Nov 9, 2026
brass75 commentedon Nov 9, 2026
Having given this some thought, the actual initialization should be in the
render-enginerepo and not the CLI. In other words,render-engineshould 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
initthat is runnable (has a__main__.py) such that callinguvx --from render-engine initanduvx --from render-engine-cli render-engine initare 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.