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
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
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
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):
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
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
wrote:
> On Mon, 2009-08-10 at 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',
> >
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':
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,
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
10 matches
Mail list logo