for example, check whether this level of customization capabilities of the generated project that you need:
pip install tox cookiecutter cookiecutter https://github.com/ionelmc/cookiecutter-pylibrary.git The ionelmc cookiecutter-pylibrary project uses the cookiecutter hooks to customize post-generated project[1] that said, the cookiecutter master branch, not yet released, now supports choices[2] [1] http://cookiecutter.readthedocs.org/en/latest/advanced_usage.html?highlight=hook#using-pre-post-generate-hooks-0-7-0 [2] https://github.com/audreyr/cookiecutter/issues/441 Em terça-feira, 23 de junho de 2015 08:17:14 UTC-3, Josh Crompton escreveu: > > Sounds like you might want to take a look at cookiecutter[0] and/or > project templates[1] > > [0] https://github.com/audreyr/cookiecutter > [1] > https://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname-destination > > > On Tue, Jun 23, 2015 at 2:26 PM, Hiroki Kiyohara <[email protected] > <javascript:>> wrote: > > Thanks, Josh. > > > > * I thought the config (.djangorc) should be included in project > template > > it's own. > > * bash alias is OK, but it's not easy to share this way with lots of > > developers like "Hey, when you start development, please type `alias > > mystartproject...` (so long)." > > > > anyway, I got it. I'll create some aliases or wrapper commands if it's > > necessary. > > > > > > On Tue, Jun 23, 2015 at 12:08 PM, Josh Smeaton <[email protected] > <javascript:>> > > wrote: > >> > >> There are a couple of problems with this proposal IMO. > >> > >> 1) The .djangorc file would need to be somewhere on the file system > (like > >> ~/.djangorc), because you want it for the startproject command, it > can't be > >> deployed with startproject > >> 2) It doesn't seem to provide that big a benefit > >> 3) A simple bash alias can achieve the exact same result > >> > >> I just don't think this is something that Django needs to take on when > >> it's very easy to create your own alias that does exactly what you > need. > >> > >> Regards, > >> > >> > >> On Tuesday, 23 June 2015 12:38:24 UTC+10, Hiroki Kiyohara wrote: > >>> > >>> Hi all. > >>> > >>> I propose a new feature `.djangorc`. > >>> It should be included in root of project template. > >>> You can write down configations for `startproject --template=...` > >>> > >>> ## Motivation > >>> > >>> I always use custom project template, but it requires a lot of > arguments > >>> like... > >>> > >>> django-admin startproject --template=/path/to/template > >>> --extension=py,md,rst,ini,cfg --name=.coveragerc <project_name> > >>> > >>> Actually I use this `startproject` feature to create 'repository > >>> skeleton' not only django's project directory. > >>> 'repository skeleton' contains like README.md, tox.ini, .coveragerc, > and > >>> django's project direcotry and so on. > >>> > >>> I know this usage of `startproject` is little tricky. but I think some > of > >>> django users use like this and > >>> want this `.djangorc` feature (not to pass a lot of argument). > >>> > >>> ## Proposal > >>> > >>> `.djangorc` will contain some of this. > >>> > >>> ``` > >>> [startproject] > >>> extension=py,md,rst,ini,cfg > >>> name=.coveragerc > >>> ``` > >>> > >>> and If some project template contains this file, startproject command > >>> follow this config on creation process. > >>> > >>> How do you think about it? > >>> It's just my idea and there's no implementation. > >>> I want your feedback, thank you. > >>> > >> -- > >> You received this message because you are subscribed to a topic in the > >> Google Groups "Django developers (Contributions to Django itself)" > group. > >> To unsubscribe from this topic, visit > >> > https://groups.google.com/d/topic/django-developers/mOMTohdfVOI/unsubscribe. > > >> To unsubscribe from this group and all its topics, send an email to > >> [email protected] <javascript:>. > >> To post to this group, send email to [email protected] > <javascript:>. > >> Visit this group at http://groups.google.com/group/django-developers. > >> To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/django-developers/c4da9a61-fc06-4992-acff-12db064c91de%40googlegroups.com. > > > >> > >> For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Django developers (Contributions to Django itself)" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/django-developers. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/django-developers/CAPYpbLUWr2sPtyS8V7KwrgbyBnxs-Mko%2B_3dendHY-y-a3eEhQ%40mail.gmail.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ed8785e1-70be-4c34-bf26-9255210f2327%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
