Re: Problem with importing widget media

2009-05-07 Thread David Jean Louis
Hi, > I've set up my Media class for a widget as such: > > class InternationalSlugWidget(forms.TextInput): > class Media: > js = ('js/international_slug.js') Your js here is a string, you want a tuple: js = ('js/international_slug.js',) >>> type(('foo')) >>> type(('foo',)) --

Re: Problem with importing widget media

2009-05-07 Thread kRON
Problem solved, my fault - just noticed it was expecting to traverse a tuple; js = ('js/international_slug.js',) fixed the problem On May 7, 10:16 am, kRON wrote: > Sorry for the repost, somehow I've submitted the form. > > I just wanted to add that my media url looks as MEDIA_URL = '/media/' >

Re: Problem with importing widget media

2009-05-07 Thread kRON
Sorry for the repost, somehow I've submitted the form. I just wanted to add that my media url looks as MEDIA_URL = '/media/' Can anyone steer me the right way for fixing this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Problem with importing widget media

2009-05-07 Thread kRON
I've set up my Media class for a widget as such: class InternationalSlugWidget(forms.TextInput): class Media: js = ('js/international_slug.js') The problem is Django keeps pumping out the following import statements: ...etc My media root string looks --~--~-~--~~-