How to extend django.contrib auth and admin.

2008-12-06 Thread Mahesh Vaidya
How to extend django.contrib auth and admin. Hi, I would like to extend "auth.user" from django.contrib auth and admin. I would like to add one more field in user. models.py (added Code) from django.contrib.auth import models as auth_models gender = ( ('M', 'Male'),

models.AutoField question

2008-11-29 Thread Mahesh Vaidya
Hi, I want use id as uid or something like; itd start from 1; staring user id from "1 - one" is not that good; can I initialize starting value for AutoField ? id = models.AutoField(primary_key=True) Thank You -- --Mahesh Bangalore --~--~-~--~~~---~--~~ You

Re: parameter not getting passed to view function

2008-11-25 Thread Mahesh Vaidya
Thank You all for your help; yes there was error in RegEx. On Tue, Nov 25, 2008 at 10:01 AM, jai_python <[EMAIL PROTECTED]> wrote: > > modify ur url as > (r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello') > > http://localhost:8000/hello/TEST > then "print who" in ur view file. > > Lemme

Date Field question -

2008-11-16 Thread Mahesh Vaidya
Hi, I am going to used "DateField" in my model. Which format does date field user is it DD/MM/ (European) or MM/DD/ (American) style ? and is it customizable ? Thank You in advance -Mahesh --~--~-~--~~~---~--~~ You received this message because you are