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 <hirok...@gmail.com> 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 <josh.smea...@gmail.com>
> 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
>> django-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-developers@googlegroups.com.
>> 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 django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> 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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
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/CAKoVLMicmetO2nVi%3D2f1JAJe1cAv%3DTtowm_QTR3szxusEKqE1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to