How would people feel about changing that so that 'manage.py startapp'
creates a urls.py in the app directory, and maybe generates the
appropriate include statement in the project-wide URLConf?
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
I think that's a nice idea, especially since a per app urls.py seems
to be recommended. +1
> and maybe generates the appropriate include statement in the
> project-wide URLConf?
I wonder if just adding a comment to the generated <app>/urls.py file
with a line that could be copy/pasted would be a good compromise?
+ seth
-1 to changing project-wide URLConf
+1 to comment to copy in urls.py
:)
I've gone back and forth on this one. If I recall correctly, startapp
used to do that, and we removed it to make things seem simpler. (Fewer
files == less scary.) Then again, it's an extra convenience to create
the urls.py automatically. Ehh, I'm +0 either way.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
Yes, I also remember this. So -0
Because copy urls.py from the project is easily. You can modify the
project's urls.py to suit for your need.
--
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit