#34312: startapp/startproject template should support file renames with the full
context
-------------------------------------+-------------------------------------
     Reporter:  Will Gordon          |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Core (Management     |                  Version:  dev
  commands)                          |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Greg Sadetsky):

 @Will Gordon: for now, you can use use the cookiecutter project
 (https://github.com/cookiecutter/cookiecutter) which does support
 template-based file renaming

 See https://github.com/cookiecutter/cookiecutter-django for example, which
 has `{{cookiecutter.project_slug}}` as the directory name.

 ---

 @Mariusz Felisiak: agreed that replacing words in filenames would be
 potentially very risky - would you consider template-based replacing, as
 above i.e. allowing `{{ project_name }}` to be used & replaced as part of
 directory and file names?

 Personally speaking, that's all I'd need for my project templates & would
 save me from doing hacky `mv`s after instantiating a project.

 Thank you!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34312#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ae852bc4e-99e22b3d-6050-4631-96ea-e4916af71fdc-000000%40eu-central-1.amazonses.com.

Reply via email to