Search code examples
djangocookiecutter-djangocookiecutter

How to update Cookiecutter Django config for existing project?


I have been building a project on top of cookiecutter django (https://github.com/pydanny/cookiecutter-django), with Celery turned off in the cookiecutter generation settings. However, now I'm finding I need Celery. Is there a way I can flip a config, turn Celery on, and re-generate boilerplate in this current project?

Otherwise, what I plan to do is create a new cookiecutter project with the new settings and then inspect files and differences and import changes by hand (which is tedious and potentially imperfect).

Any alternatives/improvements to this manual method would work as an answer for this question.


Solution

  • What I ended up doing is running cookiecutter with all my current settings, then running it again with the same settings except celery turned on, then git diff the two folders and step through the diff manually to apply the appropriate changes.