On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
> On 2/10/06, limodou <[EMAIL PROTECTED]> wrote:
> >
> > On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> > >
> > > The existing syntax is text-based, clear, concise, expressive, and
> pythonic
> > > (since it actually _is_ python).
> >
> > I agree, but not very suit for automaticl tools. Do you like manually
> > modifying settings.py and urls.py every time to install a app? Why
> > don't we make these things easier? What I suggest is aimed to
> > automatic tools. Because ini format is easy for changing.
>
> Initial application setup is a once-only task. django-admin.py will create a
> stub settings.py and urls.py for you. This is already automated.
>
> Modifications to urls.py can't be automated, because they require
> description of a regular expression for URL matches. You could write a
> 'wizard' to help, but I would suggest that the effort involved in writing
> the wizard vastly outstrips the need.
>
> The addition of an extra line in the installed application list of
> settings.py is only a one line change - so again, I would argue effort >
> need.

Maybe it's simple, but what about install an app? You should modify:

settings.py
urls.py
copy media files to special directory

I want these things can be done easily. For example, I download a
third app, and want to run with it. If I could only supply some
parameters about my environment let things easily be done, that will
be so happy. But if there is a tool for this thing, it may need to
modify the settings.py and urls.py automatically according to the
parameters supplied from you.

>
> However, even if there was a large need, it could be acheived without
> changing the config syntax; either modify settings.py to load its
> application list from some other location (or dynamically discover
> applications), or write a settings.py 'rewriter' - a tool that rewrites the
> content of settings.py with additions. You can get a simple version using
> import and pprint; alternatively, you could refactor and reuse the same
> logic that django-admin uses to output the settings in the first place.

If these can be supplied,  it may be better than what I proposed. What
I proposed may should be changed to "Need automatic process support,
especially install apps".
>
> > This is why automatic work cannot be implemented so easily.
>
> Pardon? A Turing complete language makes it _harder_ to do automated work?
> If anything, it should be _easier_, because there is no separation between
> code and data.
>

Maybe I expressed my ideas not so clearly, I'm sorry. Just like above
what I said, what I really want is a mechanism aim for automatic work
and automatic tools. So changing configuration files more simpler is
more better.

What I released project djangoinstall really can do somethings like
this, but I think if it's more easier that's would be better. And I
also want some IDE can also support django to.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to