El Thu, 17 Sep 2009 10:00:22 -0700 (PDT)
IanSR escribió:
> I realize this isn't in typical Django style, but I'd be interested
> any feedback. The rough idea is outlined below.
It doesn't sound like a good idea since you may end up breaking DRY (by writing
the same bolierplate code for those me
I would like tighten the link from URLs to instances of Models and
have something like:
import foo.FooModel
urlpatterns = patterns('',
(r'foo/create/?$', 'foo.FooModel.create'),
(r'foo/(?P\d+)/?$', 'foo.FooModel.view'),
(r'foo/(?P\d+)/edit$', 'foo.FooModel.edit'
2 matches
Mail list logo