Skip to content

move generated contents to a path you can set #23

Open

Description

@kjaymiller

Cookiecutter by default puts all the contents in a site project folder. This is great for things like documentation but doesn't make sense when the webiste is the main focus of the project.

Suggestion

Set the project_path to be "__home". If the variable is not changed, then copytree the folder into the project root.

Activity

  1. john0isaac commented on Feb 29, 2024

    @john0isaac
    Member

    We have output_dir from cookiecutter but it always defaults to creating a folder inside the current folder I think we need to work on changing how cookiecutter works as we already have the flag that people can set to specify a folder.
    image

  2. kjaymiller commented on Feb 29, 2024

    @kjaymiller
    ContributorAuthor

    I think doing a copytree, rmtree would be easier than overriding how cookiecutter works no?

  3. john0isaac commented on Feb 29, 2024

    @john0isaac
    Member

    Yes, it would let's see who takes this on and if they can figure out something better

  4. brass75 commented on Sep 10, 2026

    @brass75
    Member

    Cookiecutter (used by render-engine init) will create a new sub-directory in the directory where it's called. We should add logic to allow the user to specify a different path if so desired. The simplest way to implement this is probably to change the working directory to be the parent directory of the desired location. If the desired location is a directory that already exists, then moving it after creation in a temp directory would probably be the solution.

  5. added
    DjangonautsThis issue is reserved to be work on by Djangonauts
    and removed on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DjangonautsThis issue is reserved to be work on by DjangonautsenhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions