importing model from html.py

2008-07-22 Thread Mayank Dhingra
Hi, Was wondering what's wrong with importing a model or a function from a view which further imports a model. Have been trying to tweak a default filter from html.py to use model but unable to do so. error: cannot import name models Thanks --~--~-~--~~~---~--~

Problem in PIL with filename having chinese characters

2008-05-11 Thread Mayank Dhingra
Hi All, I am facing a problem while trying to accept an uploaded image in PIL whose name has some chinese characters . error = "No such file or directory" on line 1400 i.e fp = __builtin__.open(fp, "wb") of Image.py in PIL Is it a bug or something that I am missing. Files with names in English

Re: problem in remember me feature

2008-05-27 Thread Mayank Dhingra
yes, i've imported settings. from django.conf import settings On May 27, 9:52 pm, Sebastian Bauer <[EMAIL PROTECTED]> wrote: > did you have this: > > import settings > > in files where you using settings variable? > > Mayank Dhingra pisze: > > > any tho

Re: problem in remember me feature

2008-05-30 Thread Mayank Dhingra
any suggestions/thoughts ? On May 27, 11:46 pm, Mayank Dhingra <[EMAIL PROTECTED]> wrote: > yes, > > i've imported settings. > > from django.conf import settings > > On May 27, 9:52 pm, Sebastian Bauer <[EMAIL PROTECTED]> wrote: > > > did you have t

Custom CSS for newforms using ModelForm

2008-06-02 Thread Mayank Dhingra
Hi, I was looking to add custom css to the fields of a (new)form that I created using ModelForm but couldn't find any mention or discussion on it. Does any know know how can I achieve it ? Thanks in advance, --~--~-~--~~~---~--~~ You received this message becaus

Re: Custom CSS for newforms using ModelForm

2008-06-03 Thread Mayank Dhingra
. > > You'll have to specify the field types for your model, then widget > types for each field, and the extra attributes go in the widget. > > Yrs, > E > > On Jun 3, 2008, at 2:23 AM, Mayank Dhingra wrote: > > > > > Hi, > > > I was looking to add

Re: problem in remember me feature

2008-06-03 Thread Mayank Dhingra
n 5 times or so it gives the above mentioned error. On May 30, 4:59 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 3:58 AM, Mayank Dhingra <[EMAIL PROTECTED]> > wrote: > > > > > > > I am experiencing a strange problem while

Re: ModelForm and required fields

2008-06-03 Thread Mayank Dhingra
did u try using the required parameter ? In my case the default behavior was required and i changed it to not-required by adding "required=False" like name = forms.CharField(widget=forms.TextInput(attrs=class_txtbox), required=False) On May 2, 10:18 am, zmalloc <[EMAIL PROTECTED]> wrote: > Model

Re: Custom CSS for newforms using ModelForm

2008-06-04 Thread Mayank Dhingra
get=forms.TextInput(attrs={'class':'super'})) > # other fields that need to be customized > class Meta: > model = Model_1 > # etc > > That ought to do it... > > E > > On Jun 3, 2008, at 3:02 PM, Mayank Dhingra wrote: >

custom css in password change form built using oldforms

2008-06-04 Thread Mayank Dhingra
Hi Guys, I needed a work around to add custom css in the default(oldforms) password change form that I am using . How to go about it ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: custom css in password change form built using oldforms

2008-06-05 Thread Mayank Dhingra
no i need it for the main/base app that am building On Jun 5, 2:44 am, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > For the admin app? > > On Wed, Jun 4, 2008 at 4:08 PM, Mayank Dhingra <[EMAIL PROTECTED]> wrote: > > > Hi Guys, > > > I need

Re: problem in remember me feature

2008-06-06 Thread Mayank Dhingra
any suggestions anyone ? On Jun 4, 9:22 am, Mayank Dhingra <[EMAIL PROTECTED]> wrote: > traceback > > UnboundLocalError at /login/ > local variable 'settings' referenced before assignment > > Installed Middleware: > ('