Re: Think about urlconf again

2006-04-03 Thread limodou
On 4/4/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > No, urlconf just one place, we also have view and template need to > > deal with. > > Last I checked, none of my views have URLs, other than redirects to > relative paths like '../' or 'thanks/' or redirects to major pages l

Re: Think about urlconf again

2006-04-03 Thread Max Battcher
limodou wrote: > No, urlconf just one place, we also have view and template need to > deal with. Last I checked, none of my views have URLs, other than redirects to relative paths like '../' or 'thanks/' or redirects to major pages like '/' and '/member/login/'. As for my templates, certainly

Re: Think about urlconf again

2006-04-03 Thread limodou
On 4/4/06, oggie rob <[EMAIL PROTECTED]> wrote: > > > So we want to think about if the app_pefix can be easily changed or > > remapped. > > Can't you just use "include"? > urlpatterns = patterns('', > ('^%s/' % app_prefix, include('app.urls')), > ) > > Pretty flexible, pretty simple, and alre

Re: Think about urlconf again

2006-04-03 Thread oggie rob
> So we want to think about if the app_pefix can be easily changed or remapped. Can't you just use "include"? urlpatterns = patterns('', ('^%s/' % app_prefix, include('app.urls')), ) Pretty flexible, pretty simple, and already there! -rob --~--~-~--~~~---~--~-

Re: Patches to tutorial for magic-removed branch

2006-04-03 Thread Seth Falcon
"Russell Keith-Magee" <[EMAIL PROTECTED]> writes: > Sure would! Attach them to ticket #1464. Done, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Think about urlconf again

2006-04-03 Thread limodou
In there I just want to express my thoughts about urls.py framework, I want to propose myself solution. What's the question? == A project may be separated into many pieces of apps, and these apps can be move to other places or reused, so the url of the apps maybe changed, and how

Re: helper functions

2006-04-03 Thread Andy Dustman
On 3/31/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Mar 31, 2006, at 1:30 PM, Alan Bailey wrote: > > IsModified() > > This could be useful, but it's probably not worth doing since Django > would have to keep two copies of all your data in memory to figure > this out. Doubling the mem

Re: Patches to tutorial for magic-removed branch

2006-04-03 Thread Russell Keith-Magee
On 4/4/06, Seth Falcon <[EMAIL PROTECTED]> wrote: Hi,I'm just getting started with django and worked through the tutorialusing the magic-removed branch.I made some fixes based on info found on the wiki to make the tutorialwork.  Wondering if someone would like the diffs. Sure would! Attach them to

Patches to tutorial for magic-removed branch

2006-04-03 Thread Seth Falcon
Hi, I'm just getting started with django and worked through the tutorial using the magic-removed branch. I made some fixes based on info found on the wiki to make the tutorial work. Wondering if someone would like the diffs. + seth --~--~-~--~~~---~--~~ You rec

Regarding docs patch in ticket 1263

2006-04-03 Thread Malcolm Tredinnick
More and more comments are being posted about the documentation on the magic-removal branch. This reminded me that I have a patch in Trac (ticket #1263) to fix some of the documentation and it has been sitting for a while now. Jacob: is there something wrong with this, or is it just unloved? I o

Re: Django/Dojo integration: take a look and speak up

2006-04-03 Thread James Bennett
One more thing I forgot: though the Dojo "Event + I/O editon" dojo.js provides all the Dojo modules the admin needs at the moment, the package includes a full Dojo source tree, so if you want to start playing with this and improving it or experimenting with things you've wanted to do once Dojo/Dja

Django/Dojo integration: take a look and speak up

2006-04-03 Thread James Bennett
I've just finished up the first attempt at Django/Dojo integration; this is, essentially, the Django admin app refactored to make use exclusively of Dojo packages (both from Dojo itself and from a custom Django namespace) for all its JavaScript needs. So I've bundled it up and made it available fo

Re: Broken Filters in Template Conditional

2006-04-03 Thread stephan.february
I've just come up against the same problem. I ended up coding a custom filter as a workaround. #Custom Filter @register.filter def bartest(value, arg): if (value == int(arg)): return "trueval" else: return "falseval" >>> snip <<< template example: {{ foo.id|bartes

Re: How to create related table from field

2006-04-03 Thread Nebojsa Djordjevic
akaihola wrote: >> If I understood docs correctly this is now possible in m-r branch. > > Sounds interesting! Which part of the docs? Ops, my error, no docs. Sorry for misleading post :( I mostly got this from M2M field usage, and with all the talk of "removing the magic" I presumed that I

additional parameter for generic views: manipulator

2006-04-03 Thread Michael Radziej
Hi, I'd like to be able to pass a Manipulator object into the generic views. See http://code.djangoproject.com/ticket/1563 for the patch. The proposed change allows a very nice code pattern: - the view function handles fetching the required data and doing sanity checks, creates a manipulator