Re: I need some directions to auth system and stuff

2006-01-26 Thread Amit Upadhyay
On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I`ve got couple of questions about auth system. Just a directions..1. How do I extend base User class? I`ve read about subclassing, but it was two month ago and it was not very clear.. Is there any new method?I think you are talking about htt

Re: image field update impossible.

2006-01-26 Thread Kenneth Gonsalves
On Thursday 26 Jan 2006 1:12 pm, [EMAIL PROTECTED] wrote: > img= meta.ImageField('Attach Image', upload_to='postimgs', upload_to='postings/' -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Re: How do I get POST variables in my template

2006-01-26 Thread Jeremy Dunck
On 1/26/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > If your request.POST is displayed as , that means > request.POST is empty. If request.POST had something in it, it'd look > like this: > > And it might me you've run into a newbie hole http://code.djangoproject.com/wiki/NewbieMistake

Re: How do I get POST variables in my template

2006-01-26 Thread tonemcd
* thud! * - the sound of a rather large penny dropping. Many many thanks Adrian, it's making a *lot* more sense now (how on earth did I miss that page in the docs!) I *think* that the reason why my request.POST was coming though as empty (even when I clicked submit) is that I had no name for my

Re: How do I get POST variables in my template

2006-01-26 Thread Adrian Holovaty
On 1/26/06, tonemcd <[EMAIL PROTECTED]> wrote: > Essentially, I used to have statements like this some_variable_from_my_form> sprinkled around my pages to check that > form-based variables where being passed through correctly. Zope put > into a namespace called 'form', but also made them availabl

Re: RoR Ajax helpers port to Django tags?

2006-01-26 Thread Eugene Lazutkin
Louis wrote: Ben, Eugene: I think one of the difference between "helper" approach and "widget" (especially dojo.widget) approach is whether you want to specify "parameters or behaviors" of elements in the page using (proprietary) DOM attributes or using parameters to helper tags. So Widgets

Re: How do I get POST variables in my template

2006-01-26 Thread tonemcd
Hello again Amit, I'm trying to get the Zen of Django, by using methods I used to use in Zope ;) Essentially, I used to have statements like this sprinkled around my pages to check that form-based variables where being passed through correctly. Zope put into a namespace called 'form', but also

I need some directions to auth system and stuff

2006-01-26 Thread [EMAIL PROTECTED]
I`ve got couple of questions about auth system. Just a directions.. 1. How do I extend base User class? I`ve read about subclassing, but it was two month ago and it was not very clear.. Is there any new method? 2. I want to have login form on each page. How should I process form, if I want to st

Re: How do I get POST variables in my template

2006-01-26 Thread Amit Upadhyay
On 1/27/06, tonemcd <[EMAIL PROTECTED]> wrote: Cheers Eric, but 'debug' doesn't seem to work in an intuitive way - atleast to me ;)e.g.{% debug %}Hi tonemcd, What exactly are you trying to do? If you just want to inspect the variables passed to view code, why dont you use a  "assert False" somewher

Re: How do I get POST variables in my template

2006-01-26 Thread tonemcd
Cheers Eric, but 'debug' doesn't seem to work in an intuitive way - at least to me ;) e.g. {% debug %} dumps this into the page {'block': It is '>, ,

Re: Some thoughts about slug and slugify

2006-01-26 Thread Wilson
If I'm understanding correctly, this is how prepopulate_from works for SlugField : http://www.djangoproject.com/documentation/model_api/#field-types

Re: How do I get POST variables in my template

2006-01-26 Thread Eric Walstad
On Thursday 26 January 2006 09:43, tonemcd wrote: > I guess what I was after was functionality like in > Zope, where the entire HTTP Request object is dumped, along with > environment and other variables. GET and POST are all expanded out too. > With the Zope PageTemplate code that Stefan contrib

Re: rss problem

2006-01-26 Thread Sean Perry
While on the subject, my Nokia 770's RSS reader always believes there are new versions available of the main Django and the Django community blogs.

Re: RoR Ajax helpers port to Django tags?

2006-01-26 Thread Louis
Hi, I just noticed there's a lot of postings on this thread. Ian: I only spent half an hour or so to make a bridge between Django and Ben's RailHelpers. Thanks for the concern, but don't worry about it. My code is public domain and anybody can use and modify if they like. I did a bit more of Aj

Re: How do I get POST variables in my template

2006-01-26 Thread tonemcd
Thanks for the info 'the.ech0' - it seems that's what I have to do. I guess what I was after was functionality like in Zope, where the entire HTTP Request object is dumped, along with environment and other variables. GET and POST are all expanded out too. With the Zope PageTemplate code that Ste

Re: How do I get POST variables in my template

2006-01-26 Thread [EMAIL PROTECTED]
you have to loop over the variable to display elements from the dict or just pass in the value you want to from the post. return render_to_response('resources/index', { 'request': request, 'foo': request.POST["foo"], 'mes

Re: How do I get POST variables in my template

2006-01-26 Thread [EMAIL PROTECTED]
you have to loop over the variable to display elements from the dict or just pass in the value you want to from the post. return render_to_response('resources/index', { 'request': request, 'foo': request.POST["foo"], 'mes

Re: Some thoughts about slug and slugify

2006-01-26 Thread Batiste
Another thing... I lost hours to find the slugify function in the code... It would be nice if something like this would be possible : class Poll(meta.Model): title = meta.CharField(maxlength=30) slug_title = meta.SlugField(auto_from=self.title,maxlength=30) The slug_title field will be

Some thoughts about slug and slugify

2006-01-26 Thread Batiste
Hello, Take a look in the URLify javascript and python function javascirpt /media/js/urlify.js http://code.djangoproject.com/browser/django/trunk/django/core/template/defaultfilters.py#l66 These function are nice to make nice URI that will bring good google rank page. But there is possible to

Re: prepopulate_from

2006-01-26 Thread Adrian Holovaty
On 1/26/06, Tim Terlegård <[EMAIL PROTECTED]> wrote: > Why is a field with prepopulate_from populated using javascript? > It's ok that javascript is used for some tasks, but why is it used for > populating a field before it's saved? Can't it be done in the save() > method instead? That's because

Re: Cache issue on Dreamhost?

2006-01-26 Thread Chase
I knew it was that easy. Must have missed that line in the install guide. Thanks, Chase

How do I get POST variables in my template

2006-01-26 Thread tonemcd
Hi all, This is probably going to sound really silly, but when I'm debugging, I just can't easily output the contents of request.POST and request.GET into my templates. I have tried this; return render_to_response('resources/index', { 'request': request,

prepopulate_from

2006-01-26 Thread Tim Terlegård
Why is a field with prepopulate_from populated using javascript? It's ok that javascript is used for some tasks, but why is it used for populating a field before it's saved? Can't it be done in the save() method instead? Tim

ANN:Chinese Django Tutorial Released!

2006-01-26 Thread limodou
It is my first Django tutorial, and many things I have not mentioned. I hope I can continue it. All codes can be downloaded or checkout from svn. There are two version source code in svn, one aims 0.91 version, and the other aims magic-removal branch. The sub directory newtest is for magic-remova

Re: password

2006-01-26 Thread 张骏
在 2006-1-26 16:23:[EMAIL PROTECTED] 写道: > Their is a strange bug in the admin interface of django > 1- i want to add new user from the admin interface > 2- i went to users and add new user > 3-i write my password > but i can't log in with this password > what i noticed is that this password is n

password

2006-01-26 Thread mary . adel
Their is a strange bug in the admin interface of django 1- i want to add new user from the admin interface 2- i went to users and add new user 3-i write my password but i can't log in with this password what i noticed is that this password is not saved as md5 in the database so it is not working

RE: image field update impossible.

2006-01-26 Thread mary . adel
I am suffering from the same problem acctually and i need hepl too Mary AdelSoftware DevelopperITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolisemail: [EMAIL PROTECTED]Office: +202 - 6236612 EXT. 102Mobile: +2012 5241719 Original Message Subject: image field update impossibl