Re: How to "convert" data of anonymous users who then sign up

2009-10-13 Thread nabucosound
With Django sessions I think this can be done easily: http://docs.djangoproject.com/en/dev/topics/http/sessions/ On Oct 13, 12:08 pm, Ned Batchelder wrote: > vpotter wrote: > > Hm.. Using IP for this doesn't seem to be a good idea. What about > > proxy users who will have proxy's IP or users of

Re: authorization

2009-10-13 Thread nabucosound
And specifically the @login_required decorator... On Oct 13, 12:51 pm, Daniel Roseman wrote: > On Oct 13, 11:42 am, elminio wrote: > > > Hi, > > > By admin I can choose what users can do with model objects. And what > > about certain pages. Do I have to write if in everyone view method (to > >

Re: popup forms

2009-10-13 Thread nabucosound
This is the default behaviour in Django Admin, dude... On Oct 13, 9:43 am, andreas schmid wrote: > hi, > > how can i achieve a behaviour like in the admin backend where i can add > a related object through a popup window and have it selectable after i > saved the related form? > > for example: >

Re: FormWizard Passing Data between forms

2009-10-13 Thread nabucosound
It is a common practice to pass extra parameters to the __init__ function of the form and save them as properties of the object that can be later on accessed by any method like the clean method: class MyForm(forms.Form): def __init__(self, extra_param=None, *args, **kwargs): self.ext

add my blog to django community (django blogs aggregator)

2009-09-30 Thread nabucosound
Does anybody know where to apply or send or whatever has to be done to have the feed for my django blog http://nomadblue.com/ listed in the official Django Community http://www.djangoproject.com/community/ ??? At the bottom right of the page it is supposed that you send an e-mail to Jacob, and so

_() function in templates

2009-08-26 Thread nabucosound
I recently discovered that in templates you can do {{ _("string")|filter }} so "string" is translated before being filtered. This is useful for me until this ticket is being commited: http://code.djangoproject.com/ticket/5972 Anyone knows where in Django documentation is this _() use document

Re: Passing optional URL params to reverse() function

2009-08-11 Thread nabucosound
11:28 -0700, nabucosound wrote: > > Hi all: > > > I have a URLconf url entry like this: > > > url( > >         regex=r'^(?P\w+)/(?P[-\w]+)/$', > >         view='show_post', > >         name='show_post', > >         kwarg

Passing optional URL params to reverse() function

2009-08-10 Thread nabucosound
Hi all: I have a URLconf url entry like this: url( regex=r'^(?P\w+)/(?P[-\w]+)/$', view='show_post', name='show_post', kwargs={'msg': None}, ), and I want to call it with HttpResponseRedirect and reverse(): filters = {'category': post.category.name, 'slug':

Passing optional URL params to reverse() function

2009-08-10 Thread nabucosound
Hi all: I have a URLconf url entry like this: url( regex=r'^(?P\w+)/(?P[-\w]+)/$', view='show_post', name='show_post', kwargs={'msg': None}, ), and I want to call it with HttpResponseRedirect and reverse(): filters = {'category': post.category.name, 'slug

Writing a reusable app

2009-06-25 Thread nabucosound
Hi all: I am refactoring a django app to make it reusable and share it open sourced to the world. There is a lot code which I think it is optional and maybe not everybody will want to use, like some model fields, url patterns of view functions. so my initial approach is to release only the minima